Merge branch 'xnvme_includes' of https://github.com/safl/fio
[fio.git] / helper_thread.c
index 53dea44bab57256cd292ddcd4831c40605822a2e..2a9dabf5f7e0b27053f7460327ab37f41eb721d1 100644 (file)
@@ -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
 }