diff options
Diffstat (limited to 'sysdeps/posix/sysv_signal.c')
-rw-r--r-- | sysdeps/posix/sysv_signal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/posix/sysv_signal.c b/sysdeps/posix/sysv_signal.c index 6d80803..6893ec2 100644 --- a/sysdeps/posix/sysv_signal.c +++ b/sysdeps/posix/sysv_signal.c @@ -18,7 +18,7 @@ #include <errno.h> #include <signal.h> #include <string.h> /* For the real memset prototype. */ - +#include <sigsetops.h> /* Tolerate non-threads versions of Posix */ #ifndef SA_ONESHOT @@ -46,8 +46,7 @@ __sysv_signal (int sig, __sighandler_t handler) } act.sa_handler = handler; - if (__sigemptyset (&act.sa_mask) < 0) - return SIG_ERR; + __sigemptyset (&act.sa_mask); act.sa_flags = SA_ONESHOT | SA_NOMASK | SA_INTERRUPT; act.sa_flags &= ~SA_RESTART; if (__sigaction (sig, &act, &oact) < 0) |