From acd0da6caf49d771017bd01caf12f5d755b52a24 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 9 Feb 2016 23:46:25 +0100 Subject: [PATCH] [mc] Really unblock the signal in the child --- src/mc/simgrid_mc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.20.1