fix pthread_kill unlocking
authorRich Felker <dalias@aerifal.cx>
Thu, 12 Jul 2012 15:14:12 +0000 (11:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 12 Jul 2012 15:14:12 +0000 (11:14 -0400)
it had not been updated for the futex-based locks

src/thread/pthread_kill.c

index a24ecc20576f846dd64a4e7ae707b3d8d5148cc3..15f70fb97a18b1b7ca4334e44425a7f943cee0f6 100644 (file)
@@ -5,6 +5,6 @@ int pthread_kill(pthread_t t, int sig)
        int r;
        __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;
 }