Merge "timer_create: use SIG_SETMASK restore the signal mask."
This commit is contained in:
commit
1423bb8498
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);
|
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);
|
||||||
|
|
Loading…
Reference in a new issue