Skip to content

Commit

Permalink
helper_thread: fix pthread_sigmask typo.
Browse files Browse the repository at this point in the history
Signed-off-by: Shai Levy <[email protected]>.
  • Loading branch information
shailevi23 authored and Shai Levy committed Oct 19, 2023
1 parent 1fa44a7 commit 8647425
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helper_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ static int read_from_pipe(int fd, void *buf, size_t len)

static void block_signals(void)
{
#ifdef HAVE_PTHREAD_SIGMASK
#ifdef CONFIG_PTHREAD_SIGMASK
sigset_t sigmask;

int ret;

ret = pthread_sigmask(SIG_UNBLOCK, NULL, &sigmask);
assert(ret == 0);
ret = pthread_sigmask(SIG_BLOCK, &sigmask, NULL);
assert(ret == 0);
#endif
}

Expand Down

0 comments on commit 8647425

Please sign in to comment.