X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_kill.c;h=d9a5096a06751781cc3c5d6ac5c923b7cc78d500;hp=15f70fb97a18b1b7ca4334e44425a7f943cee0f6;hb=96fbcf7d80f469e39d1dd12533f8bb8d13b64fe5;hpb=c89f130f39b413d1fb1733166ca63d694685c529 diff --git a/src/thread/pthread_kill.c b/src/thread/pthread_kill.c index 15f70fb9..d9a5096a 100644 --- a/src/thread/pthread_kill.c +++ b/src/thread/pthread_kill.c @@ -3,8 +3,8 @@ int pthread_kill(pthread_t t, int sig) { int r; - __lock(&t->killlock); + __lock(t->killlock); r = t->dead ? ESRCH : -__syscall(SYS_tgkill, t->pid, t->tid, sig); - __unlock(&t->killlock); + __unlock(t->killlock); return r; }