simplify pthread tsd key handling
[oweals/musl.git] / src / thread / pthread_cancel.c
index 9f7829e6d87ab5a4d5837a61429bb27828982328..c497dbe667d101054158d1399854f2da8469a5cc 100644 (file)
@@ -2,5 +2,6 @@
 
 int pthread_cancel(pthread_t t)
 {
+       a_store(&t->cancel, 1);
        return pthread_kill(t, SIGCANCEL);
 }