X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ee95945d9c2e0d0e25b2722a8350a3607a22f5d4..0109fe2f1c9d1bc7f2b26938e23eb463947c86ad:/src/mc/simgrid_mc.cpp diff --git a/src/mc/simgrid_mc.cpp b/src/mc/simgrid_mc.cpp index 04112cac75..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): @@ -173,7 +174,7 @@ int main(int argc, char** argv) if (_sg_mc_comms_determinism || _sg_mc_send_determinism) res = MC_modelcheck_comm_determinism(); else if (!_sg_mc_property_file || _sg_mc_property_file[0] == '\0') - res = MC_modelcheck_safety(); + res = simgrid::mc::modelcheck_safety(); else res = simgrid::mc::modelcheck_liveness(); mc_model_checker->shutdown();