summaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:40 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:40 +1000
commitbfa44e2e7afb88a9f2d6083f8ff31c2d50cc78dc (patch)
tree4a4e140f3e3e4611320e872bc2bb88b622dc83ce /monitor.c
parent4d43913ce07ffbcb1ae8e7bdd06a4bd67cd07791 (diff)
downloadmdadm-bfa44e2e7afb88a9f2d6083f8ff31c2d50cc78dc.tar.gz
mdadm-bfa44e2e7afb88a9f2d6083f8ff31c2d50cc78dc.tar.xz
mdadm-bfa44e2e7afb88a9f2d6083f8ff31c2d50cc78dc.zip
Revise message passing code.
More here
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 524411e..22ae27b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -457,7 +457,8 @@ static int wait_and_act(struct supertype *container, int nowait)
sigprocmask(SIG_UNBLOCK, NULL, &set);
sigdelset(&set, SIGUSR1);
rv = pselect(maxfd+1, &rfds, NULL, NULL, NULL, &set);
-
+ if (rv == -1 && errno == EINTR)
+ rv = 0;
#ifdef DEBUG
dprint_wake_reasons(&rfds);
#endif