X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0c13871d73e933c1847faf8debea7b7745a3ff44..37f1e9c5d8bde362c4fae81e7dcbe71277dfd850:/src/msg/msg_global.c diff --git a/src/msg/msg_global.c b/src/msg/msg_global.c index f40bf21962..0a1f1d6bc1 100644 --- a/src/msg/msg_global.c +++ b/src/msg/msg_global.c @@ -46,7 +46,6 @@ void MSG_init_nocheck(int *argc, char **argv) { #ifdef MSG_USE_DEPRECATED msg_global->max_channel = 0; #endif - msg_global->PID = 1; msg_global->sent_msg = 0; msg_global->task_copy_callback = NULL; msg_global->process_data_cleanup = NULL; @@ -135,7 +134,7 @@ msg_error_t MSG_main(void) * Do --help on any simgrid binary to see the list of currently existing configuration variables, and see Section @ref options. * * Example: - * MSG_config("workstation/model","KCCFLN05"); + * MSG_config("workstation/model","ptask_L07"); */ void MSG_config(const char *key, const char *value){ xbt_assert(msg_global,"ERROR: Please call MSG_init() before using MSG_config()"); @@ -152,14 +151,12 @@ void MSG_config(const char *key, const char *value){ */ int MSG_process_killall(int reset_PIDs) { - simcall_process_killall(); + simcall_process_killall(reset_PIDs); - if (reset_PIDs > 0) { - msg_global->PID = reset_PIDs; + if (reset_PIDs > 0) msg_global->session++; - } - return msg_global->PID; + return 0; }