Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] something might have failed during process creation, reflect that in traces
authorschnorr <Lucas.Schnorr@imag.fr>
Tue, 31 Jul 2012 21:39:04 +0000 (23:39 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Tue, 31 Jul 2012 21:44:32 +0000 (23:44 +0200)
details:
- this is especially useful when using availability traces and processes
are launched on failed hosts

src/msg/msg_process.c

index 8c318c5..2bb30a9 100644 (file)
@@ -187,6 +187,9 @@ msg_process_t MSG_process_create_with_environment(const char *name,
 
   if (!process) {
     /* Undo everything we have just changed */
+#ifdef HAVE_TRACING
+    TRACE_msg_process_destroy (name, simdata->PID, simdata->m_host);
+#endif
     msg_global->PID--;
     xbt_free(simdata);
     return NULL;