about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-27 18:39:49 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-27 18:39:49 -0400
commit823813e3f4d7a8d3848e092bcdf975c8b94b6194 (patch)
tree2b7545f17c233676fa1bdb9d57da33f7c575dbbe /src
parentbc244533ccd72a0ad075571e338a6af35cc162f5 (diff)
downloadmusl-823813e3f4d7a8d3848e092bcdf975c8b94b6194.tar.gz
musl-823813e3f4d7a8d3848e092bcdf975c8b94b6194.tar.xz
musl-823813e3f4d7a8d3848e092bcdf975c8b94b6194.zip
fix crash in pthread_testcancel if pthread_self has not been called
Diffstat (limited to 'src')
-rw-r--r--src/thread/cancel_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/cancel_impl.c b/src/thread/cancel_impl.c
index 01f52b82..cf5082d3 100644
--- 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();
 }