X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_setcancelstate.c;h=ebb6eba43d0a47ca61a62febfa939f73f031dd83;hp=6722541a27e73e190b00973997432c5d4fcc375c;hb=9080cc153cc2b09881c3245becbd68534db18d7c;hpb=eb0e8fa0b1960cff4bd65ebefc798f70273b0bc9;ds=sidebyside diff --git a/src/thread/pthread_setcancelstate.c b/src/thread/pthread_setcancelstate.c index 6722541a..ebb6eba4 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.lock) { + if (libc.threaded) { struct pthread *self = __pthread_self(); if (old) *old = self->canceldisable; self->canceldisable = new;