diff options
Diffstat (limited to 'libc/signal/signal.c')
-rw-r--r-- | libc/signal/signal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/signal/signal.c b/libc/signal/signal.c index 4d379606f..0ed281ab1 100644 --- a/libc/signal/signal.c +++ b/libc/signal/signal.c @@ -42,9 +42,8 @@ __bsd_signal (int sig, __sighandler_t handler) } act.sa_handler = handler; - if (__sigemptyset (&act.sa_mask) < 0 - || __sigaddset (&act.sa_mask, sig) < 0) - return SIG_ERR; + __sigemptyset (&act.sa_mask); + __sigaddset (&act.sa_mask, sig); act.sa_flags = __sigismember (&_sigintr, sig) ? 0 : SA_RESTART; if (sigaction (sig, &act, &oact) < 0) return SIG_ERR; |