diff options
Diffstat (limited to 'src/signal/raise.c')
-rw-r--r-- | src/signal/raise.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signal/raise.c b/src/signal/raise.c index 71e0505b..c0814fad 100644 --- a/src/signal/raise.c +++ b/src/signal/raise.c @@ -2,15 +2,16 @@ #include <errno.h> #include <stdint.h> #include "syscall.h" +#include "pthread_impl.h" int raise(int sig) { int pid, tid, ret; sigset_t set; - __syscall(SYS_rt_sigprocmask, SIG_BLOCK, (uint64_t[]){-1}, &set, 8); + __syscall(SYS_rt_sigprocmask, SIG_BLOCK, SIGALL_SET, &set, __SYSCALL_SSLEN); tid = syscall(SYS_gettid); pid = syscall(SYS_getpid); ret = syscall(SYS_tgkill, pid, tid, sig); - __syscall(SYS_rt_sigprocmask, SIG_SETMASK, &set, 0, 8); + __syscall(SYS_rt_sigprocmask, SIG_SETMASK, &set, 0, __SYSCALL_SSLEN); return ret; } |