diff options
-rw-r--r-- | src/signal/sigqueue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signal/sigqueue.c b/src/signal/sigqueue.c index bdb12856..eb4d184f 100644 --- a/src/signal/sigqueue.c +++ b/src/signal/sigqueue.c @@ -3,6 +3,7 @@ #include <unistd.h> #include <stdint.h> #include "syscall.h" +#include "pthread_impl.h" int sigqueue(pid_t pid, int sig, const union sigval value) { @@ -14,9 +15,9 @@ int sigqueue(pid_t pid, int sig, const union sigval value) si.si_code = SI_QUEUE; si.si_value = value; si.si_uid = getuid(); - pthread_sigmask(SIG_BLOCK, (void *)(uint64_t[1]){-1}, &set); + __block_app_sigs(&set); si.si_pid = getpid(); r = syscall(SYS_rt_sigqueueinfo, pid, sig, &si); - pthread_sigmask(SIG_SETMASK, &set, 0); + __restore_sigs(&set); return r; } |