projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mips cache flush/ctl syscall support and header
[musl]
/
src
/
signal
/
raise.c
diff --git
a/src/signal/raise.c
b/src/signal/raise.c
index
71e0505
..
c0814fa
100644
(file)
--- a/
src/signal/raise.c
+++ b/
src/signal/raise.c
@@
-2,15
+2,16
@@
#include <errno.h>
#include <stdint.h>
#include "syscall.h"
#include <errno.h>
#include <stdint.h>
#include "syscall.h"
+#include "pthread_impl.h"
int raise(int sig)
{
int pid, tid, ret;
sigset_t set;
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);
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;
}
return ret;
}