aboutsummaryrefslogtreecommitdiffstats
path: root/src/signal_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal_check.c')
-rw-r--r--src/signal_check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/signal_check.c b/src/signal_check.c
index ab6ffce74..5764f9051 100644
--- a/src/signal_check.c
+++ b/src/signal_check.c
@@ -33,6 +33,7 @@ static void __set_signal_handler(int sig, void (* handler)(int))
{
struct sigaction act;
act.sa_flags = 0;
+ sigemptyset(&act.sa_mask);
act.sa_handler = handler;
while(sigaction(sig, &act, NULL) && errno==EINTR);
}