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
commit2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902 (patch)
treeae7a300dac6b637f8bc3525449b4b45f6c3f941d /monitor.c
parentf94d52f43ea70665f0293de0fe8940d64931e893 (diff)
downloadmdadm-2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902.tar.gz
mdadm-2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902.tar.xz
mdadm-2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902.zip
Remove mon_pipe for communicating from monitor to manager
The returned value was never used, and we don't really want this return path anyway as writing to a pipe could conceivably block, and the monitor must not block.
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/monitor.c b/monitor.c
index 5bb2559..0d85d32 100644
--- a/monitor.c
+++ b/monitor.c
@@ -408,7 +408,7 @@ static void dprint_wake_reasons(fd_set *fds)
#endif
static int wait_and_act(struct supertype *container, int pfd,
- int monfd, int nowait)
+ int nowait)
{
fd_set rfds;
int maxfd = 0;
@@ -477,7 +477,6 @@ static int wait_and_act(struct supertype *container, int pfd,
if (read(pfd, &err, 1) > 0)
err = handle_pipe(active_cmd, *aap);
- write(monfd, &err, 1);
}
}
@@ -528,7 +527,7 @@ void do_monitor(struct supertype *container)
int first = 1;
do {
rv = wait_and_act(container, container->mgr_pipe[0],
- container->mon_pipe[1], first);
+ first);
first = 0;
} while (rv >= 0);
}