aboutsummaryrefslogtreecommitdiffstats
path: root/src/signal_check.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/signal_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/signal_check.c b/src/signal_check.c
index c06525350..ab6ffce74 100644
--- a/src/signal_check.c
+++ b/src/signal_check.c
@@ -20,6 +20,7 @@
#include "signal_check.h"
#include <errno.h>
+#include <stddef.h>
volatile sig_atomic_t __caught_signals[NSIG];
@@ -33,7 +34,7 @@ static void __set_signal_handler(int sig, void (* handler)(int))
struct sigaction act;
act.sa_flags = 0;
act.sa_handler = handler;
- while(sigaction(sig, &act, 0) && errno==EINTR);
+ while(sigaction(sig, &act, NULL) && errno==EINTR);
}
void signal_handle(int sig)