X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_create.c;h=2098e752f969ec4dab516bbb5937d372351d98b4;hb=500c969f059dc1b12dc3809d270cb169abbd57d3;hp=7c436957f8e17b33c8ae8a8a9602b82cfe030690;hpb=fb11b6b85e1e01daf17228be32d7f98b47517363;p=musl diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index 7c436957..2098e752 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -25,6 +25,8 @@ void __pthread_unwind_next(struct __ptcb *cb) } } + syscall4(__NR_rt_sigprocmask, SIG_BLOCK, (long)(uint64_t[1]){-1},0,8); + if (!a_fetch_add(&libc.threads_minus_1, -1)) exit(0);