A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now, a process can be killed and all process are killed at the end of the simulation.
[simgrid.git]
/
src
/
msg
/
global.c
diff --git
a/src/msg/global.c
b/src/msg/global.c
index
ac62493
..
1889843
100644
(file)
--- a/
src/msg/global.c
+++ b/
src/msg/global.c
@@
-299,7
+299,12
@@
MSG_error_t MSG_clean(void)
{
xbt_fifo_item_t i = NULL;
m_host_t h = NULL;
{
xbt_fifo_item_t i = NULL;
m_host_t h = NULL;
+ m_process_t p = NULL;
+
+ while((p=xbt_fifo_shift(msg_global->process_list))) {
+ MSG_process_free(p);
+ }
xbt_context_exit();
xbt_fifo_foreach(msg_global->host,i,h,m_host_t) {
xbt_context_exit();
xbt_fifo_foreach(msg_global->host,i,h,m_host_t) {