summaryrefslogtreecommitdiffstats
path: root/mdmon.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 /mdmon.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 'mdmon.c')
-rw-r--r--mdmon.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mdmon.c b/mdmon.c
index b980083..bb0c4f7 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -66,9 +66,6 @@ int clone_monitor(struct supertype *container)
rv = pipe(container->mgr_pipe);
if (rv < 0)
return rv;
- rv = pipe(container->mon_pipe);
- if (rv < 0)
- goto err_mon_pipe;
rv = clone(run_child, stack+4096-64,
CLONE_FS|CLONE_FILES|CLONE_VM|CLONE_SIGHAND|CLONE_THREAD,
@@ -79,9 +76,6 @@ int clone_monitor(struct supertype *container)
return rv;
err_clone:
- close(container->mon_pipe[0]);
- close(container->mon_pipe[1]);
- err_mon_pipe:
close(container->mgr_pipe[0]);
close(container->mgr_pipe[1]);