From: Gabriel Corona Date: Tue, 9 Feb 2016 22:46:25 +0000 (+0100) Subject: [mc] Really unblock the signal in the child X-Git-Tag: v3_13~893 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/acd0da6caf49d771017bd01caf12f5d755b52a24 [mc] Really unblock the signal in the child --- diff --git a/src/mc/simgrid_mc.cpp b/src/mc/simgrid_mc.cpp index fb5a2b30ad..4b307b34b2 100644 --- a/src/mc/simgrid_mc.cpp +++ b/src/mc/simgrid_mc.cpp @@ -46,10 +46,8 @@ static int do_child(int socket, char** argv) #ifdef __linux__ // Make sure we do not outlive our parent: sigset_t mask; - sigset_t orig_mask; - sigemptyset (&mask); - if (sigprocmask(SIG_BLOCK, &mask, &orig_mask) < 0) { + if (sigprocmask(SIG_SETMASK, &mask, nullptr) < 0) { std::perror ("sigprocmask"); return SIMGRID_MC_EXIT_ERROR; }