Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
argument why parallel execution don't jeopardize reproducibility even if we never...
[simgrid.git] / src / simix / smx_process.c
index 31d822a..aa1378a 100644 (file)
@@ -169,7 +169,7 @@ smx_process_t SIMIX_process_create_from_wrapper(smx_process_arg_t args) {
  *
  * This function actually creates the process.
  * It may be called when a SIMCALL_PROCESS_CREATE simcall occurs,
- * or directly for SIMIX internal purposes.
+ * or directly for SIMIX internal purposes. The sure thing is that it's called from maestro context.
  *
  * \return the process created
  */
@@ -408,8 +408,10 @@ void SIMIX_process_resume(smx_process_t process, smx_process_t issuer)
 
   XBT_IN("process = %p, issuer = %p", process, issuer);
 
-  if(process->context->iwannadie)
+  if(process->context->iwannadie) {
+    XBT_VERB("Ignoring request to suspend a process that is currently dying.");
     return;
+  }
 
   if(!process->suspended) return;
   process->suspended = 0;