diff options
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/pthread_sigmask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread/pthread_sigmask.c b/src/thread/pthread_sigmask.c index 6cc21d22..60a440b4 100644 --- a/src/thread/pthread_sigmask.c +++ b/src/thread/pthread_sigmask.c @@ -1,10 +1,10 @@ #include <signal.h> #include <errno.h> #include <pthread.h> +#include "syscall.h" int pthread_sigmask(int how, const sigset_t *set, sigset_t *old) { - int ret = sigprocmask(how, set, old); - if (ret) return errno; - return 0; + if (how > 2U) return EINVAL; + return -__syscall(SYS_rt_sigprocmask, how, set, old, 8); } |