X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_kill.c;h=d9a5096a06751781cc3c5d6ac5c923b7cc78d500;hp=a24ecc20576f846dd64a4e7ae707b3d8d5148cc3;hb=8c741783fc96d559cfe79301c924c217b2905c0c;hpb=7779dbd2663269b465951189b4f43e70839bc073 diff --git a/src/thread/pthread_kill.c b/src/thread/pthread_kill.c index a24ecc20..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); - a_store(&t->killlock, 0); + __unlock(t->killlock); return r; }