X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_kill.c;h=d9a5096a06751781cc3c5d6ac5c923b7cc78d500;hb=52d4444f8eec1a4e7e0861859c705c3a558b4e2a;hp=15f70fb97a18b1b7ca4334e44425a7f943cee0f6;hpb=c89f130f39b413d1fb1733166ca63d694685c529;p=musl 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; }