From 2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 12 Jul 2008 20:27:40 +1000 Subject: 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. --- managemon.c | 1 - 1 file changed, 1 deletion(-) (limited to 'managemon.c') diff --git a/managemon.c b/managemon.c index 569449b..e7c60aa 100644 --- a/managemon.c +++ b/managemon.c @@ -152,7 +152,6 @@ static void write_wakeup(struct supertype *c) /* send the monitor thread a pointer to the ping action */ write(c->mgr_pipe[1], &err, 1); - read(c->mon_pipe[0], &err, 1); } static void remove_old(void) -- cgit