about summary refs log tree commit diff
path: root/src/thread/pthread_cancel.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-02-16 22:25:50 -0500
committerRich Felker <dalias@aerifal.cx>2015-02-16 22:25:50 -0500
commit36d8e972231c397194e513691d09f7d489de0a62 (patch)
tree3aa144b704432d8b3a07cb69efad989735512c77 /src/thread/pthread_cancel.c
parentfd850de7524d8b62cd1d340417b665ed9427adae (diff)
downloadmusl-36d8e972231c397194e513691d09f7d489de0a62.tar.gz
musl-36d8e972231c397194e513691d09f7d489de0a62.tar.xz
musl-36d8e972231c397194e513691d09f7d489de0a62.zip
make pthread_exit responsible for disabling cancellation
this requirement is tucked away in XSH 2.9.5 Thread Cancellation under
the heading Thread Cancellation Cleanup Handlers.
Diffstat (limited to 'src/thread/pthread_cancel.c')
-rw-r--r--src/thread/pthread_cancel.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/thread/pthread_cancel.c b/src/thread/pthread_cancel.c
index f17ce882..4493931e 100644
--- a/src/thread/pthread_cancel.c
+++ b/src/thread/pthread_cancel.c
@@ -3,9 +3,6 @@
 
 void __cancel()
 {
-	pthread_t self = __pthread_self();
-	self->canceldisable = 1;
-	self->cancelasync = 0;
 	pthread_exit(PTHREAD_CANCELED);
 }