Merge "timer_create: use SIG_SETMASK restore the signal mask."

This commit is contained in:
Elliott Hughes 2018-03-21 17:01:41 +00:00 committed by Gerrit Code Review
commit 1423bb8498

View file

@ -154,7 +154,7 @@ int timer_create(clockid_t clock_id, sigevent* evp, timer_t* timer_id) {
int rc = pthread_create(&timer->callback_thread, &thread_attributes, __timer_thread_start, timer); int rc = pthread_create(&timer->callback_thread, &thread_attributes, __timer_thread_start, timer);
__rt_sigprocmask(SIG_BLOCK, &old_sigset, nullptr, sizeof(old_sigset)); __rt_sigprocmask(SIG_SETMASK, &old_sigset, nullptr, sizeof(old_sigset));
if (rc != 0) { if (rc != 0) {
free(timer); free(timer);