#include "xbt/system_error.hpp"
#ifdef __linux__
-#include <sys/personality.h>
#include <sys/prctl.h>
#endif
sigemptyset(&mask);
xbt_assert(sigprocmask(SIG_SETMASK, &mask, nullptr) >= 0, "Could not unblock signals");
xbt_assert(prctl(PR_SET_PDEATHSIG, SIGHUP) == 0, "Could not PR_SET_PDEATHSIG");
-
- // Make sure that the application process layout is not randomized, so that the info we gather is stable over re-execs
- if (personality(ADDR_NO_RANDOMIZE) == -1) {
- XBT_ERROR("Could not set the NO_RANDOMIZE personality");
- throw xbt::errno_error();
- }
#endif
// Remove CLOEXEC to pass the socket to the application