X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2Ftimer_create.c;h=b54a524ce85bb2e3ec97987bb3b017dc958d96f7;hb=63b9cc777323488da3474e8bc53e0ac4d3521382;hp=ee6a9c9d15f057d12ef510201fe01f887fa4468d;hpb=7c6c290695cb8726e876ff4fb8413913f661fc0b;p=musl diff --git a/src/time/timer_create.c b/src/time/timer_create.c index ee6a9c9d..b54a524c 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -55,8 +55,6 @@ static void install_handler() .sa_flags = SA_SIGINFO | SA_RESTART }; __libc_sigaction(SIGTIMER, &sa, 0); - __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, - SIGTIMER_SET, 0, _NSIG/8); } static void *start(void *arg) @@ -72,6 +70,8 @@ static void *start(void *arg) pthread_barrier_wait(&args->b); if ((id = self->timer_id) >= 0) { + __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, + SIGTIMER_SET, 0, _NSIG/8); __wait(&self->timer_id, 0, id, 1); __syscall(SYS_timer_delete, id); }