xfstests: fix compile warning in doio.c

Use of sigblock is deprecated. Use sigprocmask instead.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Dave Chinner
2010-01-21 08:53:27 +11:00
parent 8311e1bac2
commit 615144496f
+4 -2
View File
@@ -350,7 +350,7 @@ char **argv;
{ {
int i, pid, stat, ex_stat; int i, pid, stat, ex_stat;
struct sigaction sa; struct sigaction sa;
int omask; sigset_t block_mask, old_mask;
umask(0); /* force new file modes to known values */ umask(0); /* force new file modes to known values */
#if _CRAYMPP #if _CRAYMPP
Npes = sysconf(_SC_CRAY_NPES); /* must do this before parse_cmdline */ Npes = sysconf(_SC_CRAY_NPES); /* must do this before parse_cmdline */
@@ -434,7 +434,9 @@ char **argv;
Children[i] = -1; 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 * Fork Nprocs. This [parent] process is a watchdog, to notify the