Skip to content

Commit 8647425

Browse files
shailevi23Shai Levy
authored andcommitted
helper_thread: fix pthread_sigmask typo.
Signed-off-by: Shai Levy <shailevy23@gmail.com>.
1 parent 1fa44a7 commit 8647425

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

helper_thread.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@ static int read_from_pipe(int fd, void *buf, size_t len)
106106

107107
static void block_signals(void)
108108
{
109-
#ifdef HAVE_PTHREAD_SIGMASK
109+
#ifdef CONFIG_PTHREAD_SIGMASK
110110
sigset_t sigmask;
111111

112+
int ret;
113+
112114
ret = pthread_sigmask(SIG_UNBLOCK, NULL, &sigmask);
113115
assert(ret == 0);
114116
ret = pthread_sigmask(SIG_BLOCK, &sigmask, NULL);
115-
assert(ret == 0);
116117
#endif
117118
}
118119

0 commit comments

Comments
 (0)