mirror of
https://github.com/fluencelabs/musl
synced 2025-06-25 04:31:56 +00:00
optimize/debloat raise
use __syscall rather than syscall when failure is not possible or not to be considered.
This commit is contained in:
@ -9,8 +9,8 @@ int raise(int sig)
|
|||||||
int pid, tid, ret;
|
int pid, tid, ret;
|
||||||
sigset_t set;
|
sigset_t set;
|
||||||
__syscall(SYS_rt_sigprocmask, SIG_BLOCK, SIGALL_SET, &set, _NSIG/8);
|
__syscall(SYS_rt_sigprocmask, SIG_BLOCK, SIGALL_SET, &set, _NSIG/8);
|
||||||
tid = syscall(SYS_gettid);
|
tid = __syscall(SYS_gettid);
|
||||||
pid = syscall(SYS_getpid);
|
pid = __syscall(SYS_getpid);
|
||||||
ret = syscall(SYS_tgkill, pid, tid, sig);
|
ret = syscall(SYS_tgkill, pid, tid, sig);
|
||||||
__syscall(SYS_rt_sigprocmask, SIG_SETMASK, &set, 0, _NSIG/8);
|
__syscall(SYS_rt_sigprocmask, SIG_SETMASK, &set, 0, _NSIG/8);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user