projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4175e
)
fix pthread_kill unlocking
author
Rich Felker
<dalias@aerifal.cx>
Thu, 12 Jul 2012 15:14:12 +0000
(11:14 -0400)
committer
Rich 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
patch
|
blob
|
history
diff --git
a/src/thread/pthread_kill.c
b/src/thread/pthread_kill.c
index a24ecc20576f846dd64a4e7ae707b3d8d5148cc3..15f70fb97a18b1b7ca4334e44425a7f943cee0f6 100644
(file)
--- a/
src/thread/pthread_kill.c
+++ b/
src/thread/pthread_kill.c
@@
-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;
}