fix arm run-time abi string functions
[musl] / src / thread / pthread_cancel.c
index a21c386..3d22922 100644 (file)
@@ -92,5 +92,6 @@ int pthread_cancel(pthread_t t)
                init = 1;
        }
        a_store(&t->cancel, 1);
+       if (t == pthread_self() && !t->cancelasync) return 0;
        return pthread_kill(t, SIGCANCEL);
 }