use a separate signal from SIGCANCEL for SIGEV_THREAD timers
[musl] / src / thread / pthread_cancel.c
index 9f7829e..c497dbe 100644 (file)
@@ -2,5 +2,6 @@
 
 int pthread_cancel(pthread_t t)
 {
+       a_store(&t->cancel, 1);
        return pthread_kill(t, SIGCANCEL);
 }