Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
trace earlier, simix may start the process before returning the flow control
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Mon, 11 Apr 2011 07:44:17 +0000 (09:44 +0200)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Mon, 11 Apr 2011 07:44:17 +0000 (09:44 +0200)
src/msg/m_process.c

index 99e606a..177a20c 100644 (file)
@@ -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--;