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:
bc24453
)
fix crash in pthread_testcancel if pthread_self has not been called
author
Rich Felker
<dalias@aerifal.cx>
Tue, 27 Sep 2011 22:39:49 +0000
(18:39 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 27 Sep 2011 22:39:49 +0000
(18:39 -0400)
src/thread/cancel_impl.c
patch
|
blob
|
history
diff --git
a/src/thread/cancel_impl.c
b/src/thread/cancel_impl.c
index 01f52b82c7a20575e6162cedd958e071059f4b51..cf5082d386d1d7e956ba5f4a64acd395161c4715 100644
(file)
--- a/
src/thread/cancel_impl.c
+++ b/
src/thread/cancel_impl.c
@@
-61,7
+61,7
@@
static void cancel_handler(int sig, siginfo_t *si, void *ctx)
void __testcancel()
{
- pthread_t self =
__
pthread_self();
+ pthread_t self = pthread_self();
if (self->cancel && !self->canceldisable)
__cancel();
}