projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d674f85
)
optimize/debloat raise
author
Rich Felker
<dalias@aerifal.cx>
Fri, 26 Apr 2013 23:02:23 +0000
(19:02 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 26 Apr 2013 23:02:23 +0000
(19:02 -0400)
use __syscall rather than syscall when failure is not possible or not
to be considered.
src/signal/raise.c
patch
|
blob
|
history
diff --git
a/src/signal/raise.c
b/src/signal/raise.c
index 927fe26a08daf3cf513e338c157341c5c371d1ee..b24dc7417f46131ed8e8d687db75ac9487e85768 100644
(file)
--- a/
src/signal/raise.c
+++ b/
src/signal/raise.c
@@
-9,8
+9,8
@@
int raise(int sig)
int pid, tid, ret;
sigset_t set;
__syscall(SYS_rt_sigprocmask, SIG_BLOCK, SIGALL_SET, &set, _NSIG/8);
- tid = syscall(SYS_gettid);
- pid = syscall(SYS_getpid);
+ tid =
__
syscall(SYS_gettid);
+ pid =
__
syscall(SYS_getpid);
ret = syscall(SYS_tgkill, pid, tid, sig);
__syscall(SYS_rt_sigprocmask, SIG_SETMASK, &set, 0, _NSIG/8);
return ret;