X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/94f511befd8ea7dea78746c1f6ae818a778e67e7..c641d112f8a557b61ff14c261931077773f21fbd:/src/kernel/context/ContextUnix.cpp diff --git a/src/kernel/context/ContextUnix.cpp b/src/kernel/context/ContextUnix.cpp index de85d2ff1a..8bb32024cb 100644 --- a/src/kernel/context/ContextUnix.cpp +++ b/src/kernel/context/ContextUnix.cpp @@ -55,8 +55,7 @@ UContext::UContext(std::function code, void_pfn_smxprocess_t cleanup_fun #endif UContext::make_ctx(&this->uc_, UContext::smx_ctx_sysv_wrapper, this); } else { - if (process != nullptr && get_maestro() == nullptr) - set_maestro(this); + set_maestro(this); // save maestro for run_all() } #if SIMGRID_HAVE_MC