From def9d357a9211e9ee3d7bae418cb3e0fe8481c1e Mon Sep 17 00:00:00 2001 From: Lucas Schnorr Date: Mon, 11 Apr 2011 09:44:17 +0200 Subject: [PATCH] trace earlier, simix may start the process before returning the flow control --- src/msg/m_process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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--; -- 2.20.1