projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebde9c
)
pthread_exit is not supposed to affect cancellability
author
Rich Felker
<dalias@aerifal.cx>
Sun, 17 Apr 2011 21:09:41 +0000
(17:09 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 17 Apr 2011 21:09:41 +0000
(17:09 -0400)
if the exit was caused by cancellation, __cancel has already set these
flags anyway.
src/thread/pthread_create.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_create.c
b/src/thread/pthread_create.c
index c6a23955bdd6dde5b12ace70b74130bd2abf1c6d..6f790f5c7b7903fab33a75c7a866fd289cf23335 100644
(file)
--- 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);
}