timer_create: use SIG_SETMASK restore the signal mask.
Bug: http://b/73144101 Test: ran tests Change-Id: I9adf3a512c120ef2280ad469ad11366222d61463
This commit is contained in:
parent
9d641d5186
commit
48a69742fe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue