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
Trying to fix modification with new master branch
[simgrid.git]
/
src
/
instr
/
instr_msg_vm.c
diff --git
a/src/instr/instr_msg_vm.c
b/src/instr/instr_msg_vm.c
index
441c115
..
afbd528
100644
(file)
--- a/
src/instr/instr_msg_vm.c
+++ b/
src/instr/instr_msg_vm.c
@@
-66,14
+66,15
@@
void TRACE_msg_vm_create (const char *vm_name, msg_host_t host)
}
}
}
}
-void TRACE_msg_vm_kill(msg_vm_t vm)
-{
- if (TRACE_msg_vm_is_enabled()){
+void TRACE_msg_vm_kill(msg_vm_t vm) {
+ if (TRACE_msg_vm_is_enabled()) {
int len = INSTR_DEFAULT_STR_SIZE;
char str[INSTR_DEFAULT_STR_SIZE];
//kill means that this vm no longer exists, let's destroy it
int len = INSTR_DEFAULT_STR_SIZE;
char str[INSTR_DEFAULT_STR_SIZE];
//kill means that this vm no longer exists, let's destroy it
- PJ_container_free (PJ_container_get (instr_vm_id(vm, str, len)));
+ container_t process = PJ_container_get (instr_vm_id(vm, str, len));
+ PJ_container_remove_from_parent (process);
+ PJ_container_free (process);
}
}
}
}