summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index e9a6f80..14d466e 100644
--- a/main.c
+++ b/main.c
@@ -136,7 +136,7 @@ void signalHandler(int sig, void(*func)(int))
sa.sa_flags = 0;
sa.sa_handler = func;
- if(sigaction(sig, &sa, 0) == -1)
+ if(sigaction(sig, &sa, NULL) == -1)
{
perror("sigaction");
cleanup();