summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-04-26 19:02:23 -0400
committerRich Felker <dalias@aerifal.cx>2013-04-26 19:02:23 -0400
commitd53c92c972dab717f8f8e521eb0e9c4404cef4bd (patch)
tree09c3cc1696c3641f137b3b9aa541d5381ec6e081
parentd674f8582ae8897715782ab9dfb5a039a9112a86 (diff)
downloadmusl-d53c92c972dab717f8f8e521eb0e9c4404cef4bd.tar.gz
musl-d53c92c972dab717f8f8e521eb0e9c4404cef4bd.tar.bz2
musl-d53c92c972dab717f8f8e521eb0e9c4404cef4bd.tar.xz
musl-d53c92c972dab717f8f8e521eb0e9c4404cef4bd.zip
optimize/debloat raise
use __syscall rather than syscall when failure is not possible or not to be considered.
-rw-r--r--src/signal/raise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/signal/raise.c b/src/signal/raise.c
index 927fe26a..b24dc741 100644
--- 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;