From 23ddb47e0ceb2814eb776ffc2987998b7c253d5d Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 15 Oct 2017 13:07:12 +0200 Subject: [PATCH] Reset signal mask at startup --- src/signals.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/signals.c b/src/signals.c index 8f0dabd..a8b0084 100644 --- a/src/signals.c +++ b/src/signals.c @@ -39,6 +39,8 @@ void init_signals() // Set signal handlers signal_pending = 0; + reset_signals(); + struct sigaction sa_chld = {.sa_handler = SIG_IGN}; sigaction(SIGCHLD, &sa_chld, 0);