pthread_exit is not supposed to affect cancellability

if the exit was caused by cancellation, __cancel has already set these
flags anyway.
This commit is contained in:
Rich Felker 2011-04-17 17:09:41 -04:00
parent 1ebde9c3a2
commit 2afed79f15
1 changed files with 0 additions and 2 deletions

View File

@ -130,7 +130,5 @@ void pthread_exit(void *result)
struct pthread *self = pthread_self(); struct pthread *self = pthread_self();
struct __ptcb cb = { .__next = self->cancelbuf }; struct __ptcb cb = { .__next = self->cancelbuf };
self->result = result; self->result = result;
self->canceldisable = 1;
self->cancelasync = 0;
__pthread_unwind_next(&cb); __pthread_unwind_next(&cb);
} }