xfstests: fix compile warning in doio.c
[xfstests-dev.git] / ltp / doio.c
index a1c92c9e9a222d7beff2dc8696222bb207fc996a..0fe206d9fd56336e72d505334fa9ae05f7de2b1f 100644 (file)
@@ -350,7 +350,7 @@ char        **argv;
 {
        int                     i, pid, stat, ex_stat;
        struct sigaction        sa;
-       int omask;
+       sigset_t                block_mask, old_mask;
        umask(0);               /* force new file modes to known values */
 #if _CRAYMPP
        Npes = sysconf(_SC_CRAY_NPES);  /* must do this before parse_cmdline */
@@ -434,7 +434,9 @@ char        **argv;
                Children[i] = -1;
        }
 
-       omask = sigblock(sigmask(SIGCLD));
+       sigemptyset(&block_mask);
+       sigaddset(&block_mask, SIGCHLD);
+       sigprocmask(SIG_BLOCK, &block_mask, &old_mask);
 
        /*
         * Fork Nprocs.  This [parent] process is a watchdog, to notify the