X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/83339f7ee7c47e16583c280915b853a98c59b923..6050383ef0dc59e1ca54d02bcf6bccb993593add:/src/mc/simgrid_mc.cpp diff --git a/src/mc/simgrid_mc.cpp b/src/mc/simgrid_mc.cpp index 1d19bc56e3..0c3a6f481e 100644 --- a/src/mc/simgrid_mc.cpp +++ b/src/mc/simgrid_mc.cpp @@ -58,7 +58,7 @@ pid_t do_fork(F f) // Child-process: try { f(); - std::exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } catch(...) { // The callback should catch exceptions: @@ -125,7 +125,7 @@ std::pair create_model_checked(char** argv) close(sockets[1]); int res = exec_model_checked(sockets[0], argv); XBT_DEBUG("Error in the child process creation"); - exit(res); + _exit(res); }); // Parent (model-checker):