X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_kill.c;h=36e9b6da1f081f1bea5cdbf8ea1d822fa55b2a9c;hb=ebf82447be4b30bedc19ad868c3a0662b1ba596d;hp=9d85fa5b497fb06afcabf9d1258cc8e446b3dabd;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/thread/pthread_kill.c b/src/thread/pthread_kill.c index 9d85fa5b..36e9b6da 100644 --- a/src/thread/pthread_kill.c +++ b/src/thread/pthread_kill.c @@ -1,7 +1,6 @@ -#define SYSCALL_RETURN_ERRNO #include "pthread_impl.h" int pthread_kill(pthread_t t, int sig) { - return syscall3(__NR_tgkill, t->pid, t->tid, sig); + return -__syscall(SYS_tgkill, t->pid, t->tid, sig); }