X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_create.c;h=cf9cb191a52f80abbf43003fe253ea640d7cb232;hp=5d5d3a6f939a84548faab354f970556109bec107;hb=082fb4e9bfd105fab3443c7b055bd9c22bdffcec;hpb=d0ba09837bc033e236e921304b213daea0fe2653;ds=sidebyside diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index 5d5d3a6f..cf9cb191 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -197,7 +197,7 @@ int pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp if (attr._a_sched) { do_sched = new->startlock[0] = 1; __syscall(SYS_rt_sigprocmask, SIG_BLOCK, - SIGALL_SET, self->sigmask, _NSIG/8); + SIGALL_SET, new->sigmask, _NSIG/8); } new->unblock_cancel = self->cancel; new->canary = self->canary;