X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30a925489c6e4d4a92042ef80de375c56ccb562b..0109fe2f1c9d1bc7f2b26938e23eb463947c86ad:/src/mc/simgrid_mc.cpp diff --git a/src/mc/simgrid_mc.cpp b/src/mc/simgrid_mc.cpp index c05d0ae4ee..0c3a6f481e 100644 --- a/src/mc/simgrid_mc.cpp +++ b/src/mc/simgrid_mc.cpp @@ -12,6 +12,7 @@ #include +#include #include #include @@ -57,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: @@ -124,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):