diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 12:27:40 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 12:27:40 +0200 |
commit | 2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902 (patch) | |
tree | ae7a300dac6b637f8bc3525449b4b45f6c3f941d /monitor.c | |
parent | Handle device removal from container (diff) | |
download | 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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); } |