diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-17 17:09:41 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-17 17:09:41 -0400 |
commit | 2afed79f15a32e9616a27f9d327cef0cefbbaab1 (patch) | |
tree | 95843c26ba815c8829112ac4c1f81a42dfa1ea34 /src | |
parent | 1ebde9c3a228e8daa4bdba98046556b4b6829f5e (diff) | |
download | musl-2afed79f15a32e9616a27f9d327cef0cefbbaab1.tar.gz musl-2afed79f15a32e9616a27f9d327cef0cefbbaab1.tar.bz2 musl-2afed79f15a32e9616a27f9d327cef0cefbbaab1.tar.xz musl-2afed79f15a32e9616a27f9d327cef0cefbbaab1.zip |
pthread_exit is not supposed to affect cancellability
if the exit was caused by cancellation, __cancel has already set these
flags anyway.
Diffstat (limited to 'src')
-rw-r--r-- | src/thread/pthread_create.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); } |