From: Lucas Schnorr Date: Mon, 11 Apr 2011 07:44:17 +0000 (+0200) Subject: trace earlier, simix may start the process before returning the flow control X-Git-Tag: v3.6_beta2~59^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/def9d357a9211e9ee3d7bae418cb3e0fe8481c1e trace earlier, simix may start the process before returning the flow control --- diff --git a/src/msg/m_process.c b/src/msg/m_process.c index 99e606ae8f..177a20c784 100644 --- a/src/msg/m_process.c +++ b/src/msg/m_process.c @@ -158,15 +158,15 @@ m_process_t MSG_process_create_with_environment(const char *name, simdata->PPID = -1; } +#ifdef HAVE_TRACING + TRACE_msg_process_create(process); +#endif + /* Let's create the process: SIMIX may decide to start it right now, * even before returning the flow control to us */ SIMIX_req_process_create(&process, name, code, simdata, host->name, argc, argv, properties); -#ifdef HAVE_TRACING - TRACE_msg_process_create(process); -#endif - if (!process) { /* Undo everything we have just changed */ msg_global->PID--;