Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Keep iwannadie set instead of lying to the context factory
authorChristophe Thiéry <christopho128@gmail.com>
Fri, 6 Jan 2012 14:29:17 +0000 (15:29 +0100)
committerChristophe Thiéry <christopho128@gmail.com>
Fri, 6 Jan 2012 14:29:17 +0000 (15:29 +0100)
src/simix/smx_context_base.c

index 2906981..95b1c8b 100644 (file)
@@ -88,6 +88,7 @@ void smx_ctx_base_stop(smx_context_t context)
     context->cleanup_func(context->data);
   context->iwannadie = 0;
   SIMIX_req_process_cleanup(context->data);
+  context->iwannadie = 1;
 }
 
 smx_context_t smx_ctx_base_self(void)