X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_setcancelstate.c;h=ba2b231190436076b1d200bc76fa6e2c5dec9443;hb=4c4e22d781d75a461097cccc2ecac5adbafb1a59;hp=ebb6eba43d0a47ca61a62febfa939f73f031dd83;hpb=9080cc153cc2b09881c3245becbd68534db18d7c;p=musl 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;