| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 1/8] xfstests: fix compile warning in doio.c |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 20 Jan 2010 14:38:01 +1100 |
| In-reply-to: | <1263958688-435-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1263958688-435-1-git-send-email-david@xxxxxxxxxxxxx> |
Use of sigblock is deprecated. Use sigprocmask instead.
Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
---
ltp/doio.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ltp/doio.c b/ltp/doio.c
index a1c92c9..0fe206d 100644
--- a/ltp/doio.c
+++ b/ltp/doio.c
@@ -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
--
1.6.5
|
| Previous by Date: | [PATCH 8/8] xfstests: don't redefine _GNU_SOURCE in aio tests, Dave Chinner |
|---|---|
| Next by Date: | Re: acl build failure on x86_64, Nathan Scott |
| Previous by Thread: | Re: [PATCH 8/8] xfstests: don't redefine _GNU_SOURCE in aio tests, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 1/8] xfstests: fix compile warning in doio.c, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |