From: Rich Felker Date: Sun, 17 Apr 2011 21:09:41 +0000 (-0400) Subject: pthread_exit is not supposed to affect cancellability X-Git-Tag: v0.7.9~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2afed79f15a32e9616a27f9d327cef0cefbbaab1;p=oweals%2Fmusl.git pthread_exit is not supposed to affect cancellability if the exit was caused by cancellation, __cancel has already set these flags anyway. --- diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index c6a23955..6f790f5c 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -130,7 +130,5 @@ void pthread_exit(void *result) struct pthread *self = pthread_self(); struct __ptcb cb = { .__next = self->cancelbuf }; self->result = result; - self->canceldisable = 1; - self->cancelasync = 0; __pthread_unwind_next(&cb); }