diff options
Diffstat (limited to 'src/signal/siginterrupt.c')
-rw-r--r-- | src/signal/siginterrupt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/signal/siginterrupt.c b/src/signal/siginterrupt.c index 94f92be6..70063400 100644 --- a/src/signal/siginterrupt.c +++ b/src/signal/siginterrupt.c @@ -1,13 +1,12 @@ -#include <stddef.h> #include <signal.h> int siginterrupt(int sig, int flag) { struct sigaction sa; - sigaction(sig, NULL, &sa); + sigaction(sig, 0, &sa); if (flag) sa.sa_flags &= ~SA_RESTART; else sa.sa_flags |= SA_RESTART; - return sigaction(sig, &sa, NULL); + return sigaction(sig, &sa, 0); } |