diff options
Diffstat (limited to 'libc/signal/sigignore.c')
-rw-r--r-- | libc/signal/sigignore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/signal/sigignore.c b/libc/signal/sigignore.c index 58d1c9bfd..9e658c6c6 100644 --- a/libc/signal/sigignore.c +++ b/libc/signal/sigignore.c @@ -30,10 +30,10 @@ int sigignore (int sig) { struct sigaction act; + memset(&act, 0, sizeof(act)); + /*__sigemptyset (&act.sa_mask);*/ + /*act.sa_flags = 0;*/ act.sa_handler = SIG_IGN; - if (__sigemptyset (&act.sa_mask) < 0) - return -1; - act.sa_flags = 0; return sigaction (sig, &act, NULL); } |