revert mutex "optimization" that turned out to be worse
[musl] / src / thread / pthread_cancel.c
index 9f7829e..1ff00ad 100644 (file)
@@ -2,5 +2,6 @@
 
 int pthread_cancel(pthread_t t)
 {
+       t->cancel = 1;
        return pthread_kill(t, SIGCANCEL);
 }