timer_create: use SIG_SETMASK restore the signal mask.

Bug: http://b/73144101
Test: ran tests
Change-Id: I9adf3a512c120ef2280ad469ad11366222d61463
This commit is contained in:
Elliott Hughes 2018-03-20 17:58:11 -07:00
parent 9d641d5186
commit 48a69742fe

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);
__rt_sigprocmask(SIG_BLOCK, &old_sigset, nullptr, sizeof(old_sigset));
__rt_sigprocmask(SIG_SETMASK, &old_sigset, nullptr, sizeof(old_sigset));
if (rc != 0) {
free(timer);