#include <utility>
+#include <fcntl.h>
#include <signal.h>
#include <poll.h>
// Child-process:
try {
f();
- std::exit(EXIT_SUCCESS);
+ _exit(EXIT_SUCCESS);
}
catch(...) {
// The callback should catch exceptions:
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):
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 = MC_modelcheck_liveness();
+ res = simgrid::mc::modelcheck_liveness();
mc_model_checker->shutdown();
return res;
}