X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fcancel_impl.c;fp=src%2Fthread%2Fcancel_impl.c;h=a16489820ad7f8f3f06d5fab7676958eca201a5d;hp=3bf1e39285f6b05afe3ff8737f8e72dcd3f24e33;hb=73db33b94927d160f5dac5861a37ffbfd81d3ff6;hpb=54c567649eaadb99175b3883659872f791e482b1 diff --git a/src/thread/cancel_impl.c b/src/thread/cancel_impl.c index 3bf1e392..a1648982 100644 --- a/src/thread/cancel_impl.c +++ b/src/thread/cancel_impl.c @@ -3,7 +3,6 @@ void __cancel() { pthread_t self = __pthread_self(); - self->cp_sp = 0; self->canceldisable = 1; self->cancelasync = 0; pthread_exit(PTHREAD_CANCELED); @@ -48,8 +47,7 @@ static void cancel_handler(int sig, siginfo_t *si, void *ctx) __cancel(); } - if (self->cp_sp) - __syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL); + __syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL); } void __testcancel()