From: schnorr Date: Mon, 7 Feb 2011 15:26:59 +0000 (+0000) Subject: [trace] process container creation must be before simix request X-Git-Tag: v3.6_beta2~341 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0edee38af85b74df2429d3145124fae111620adf [trace] process container creation must be before simix request git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9588 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/m_process.c b/src/msg/m_process.c index 3dfb68416c..17904de6a9 100644 --- a/src/msg/m_process.c +++ b/src/msg/m_process.c @@ -177,6 +177,10 @@ m_process_t MSG_process_create_with_environment(const char *name, process->data = data; xbt_swag_insert(process, msg_global->process_list); +#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(&simdata->s_process, name, code, (void *) process, host->name, @@ -192,10 +196,6 @@ m_process_t MSG_process_create_with_environment(const char *name, return NULL; } -#ifdef HAVE_TRACING - TRACE_msg_process_create (process); -#endif - return process; }