From 823813e3f4d7a8d3848e092bcdf975c8b94b6194 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 27 Sep 2011 18:39:49 -0400 Subject: [PATCH] fix crash in pthread_testcancel if pthread_self has not been called --- src/thread/cancel_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.25.1