git.samba.org
/
ddiss
/
fstests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8311e1b
)
xfstests: fix compile warning in doio.c
author
Dave Chinner
<david@fromorbit.com>
Wed, 20 Jan 2010 21:53:27 +0000
(08:53 +1100)
committer
Dave Chinner
<david@fromorbit.com>
Wed, 20 Jan 2010 21:53:27 +0000
(08:53 +1100)
Use of sigblock is deprecated. Use sigprocmask instead.
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
ltp/doio.c
patch
|
blob
|
history
diff --git
a/ltp/doio.c
b/ltp/doio.c
index a1c92c9e9a222d7beff2dc8696222bb207fc996a..0fe206d9fd56336e72d505334fa9ae05f7de2b1f 100644
(file)
--- a/
ltp/doio.c
+++ b/
ltp/doio.c
@@
-350,7
+350,7
@@
char **argv;
{
int i, pid, stat, ex_stat;
struct sigaction sa;
-
int o
mask;
+
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