diff options
author | Shai Levy <58184723+shailevi23@users.noreply.github.com> | 2023-10-16 14:29:04 +0300 |
---|---|---|
committer | Shai Levy <shailevy@google.com> | 2023-10-19 11:53:50 +0000 |
commit | 864742594519946b0bcf9f5f351676b01772b601 (patch) | |
tree | b794521e64a9abbc2a9d2a816c38d31f3366bfbb | |
parent | 1fa44a7ed981b36af3049dc99b5e8c2754bb51a0 (diff) | |
download | fio-864742594519946b0bcf9f5f351676b01772b601.tar.gz |
helper_thread: fix pthread_sigmask typo.
Signed-off-by: Shai Levy <shailevy23@gmail.com>.
-rw-r--r-- | helper_thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helper_thread.c b/helper_thread.c index 53dea44ba..2a9dabf5f 100644 --- a/helper_thread.c +++ b/helper_thread.c @@ -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 } |