X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_setcancelstate.c;h=ba2b231190436076b1d200bc76fa6e2c5dec9443;hp=ebb6eba43d0a47ca61a62febfa939f73f031dd83;hb=870cc679771f776333953b2a990a107393d9d0fd;hpb=f9a6372a98cc4d1b70400b2e7238e1f9eae50558 diff --git a/src/thread/pthread_setcancelstate.c b/src/thread/pthread_setcancelstate.c index ebb6eba4..ba2b2311 100644 --- a/src/thread/pthread_setcancelstate.c +++ b/src/thread/pthread_setcancelstate.c @@ -3,7 +3,7 @@ int pthread_setcancelstate(int new, int *old) { if (new > 1U) return EINVAL; - if (libc.threaded) { + if (libc.main_thread) { struct pthread *self = __pthread_self(); if (old) *old = self->canceldisable; self->canceldisable = new;