Pārlūkot izejas kodu

pthread_exit is not supposed to affect cancellability

if the exit was caused by cancellation, __cancel has already set these
flags anyway.
Rich Felker 14 gadi atpakaļ
vecāks
revīzija
2afed79f15
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      src/thread/pthread_create.c

+ 0 - 2
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);
 }