]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: simplify try_kill_monitor
authorNeilBrown <neilb@suse.de>
Fri, 29 Jan 2010 00:33:01 +0000 (11:33 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 4 Feb 2010 01:04:16 +0000 (12:04 +1100)
commitaf7ca334874b86921c7fe76059f33bfddb209296
treedacbe961732356f99a19713670ffc7cc7dc58c0d
parent3e7312a96cddb49cb6a16842ac5c67f6c51a16c9
mdmon: simplify try_kill_monitor

After we SIGTERM the monitor we need to wait for it to finish up.
Rather than the complexity of waiting for every md array to be clean,
we can simply read from the sock connected to the monitor.
When the monitor dies, we will get EOF.  Before then we will block.

Signed-off-by: NeilBrown <neilb@suse.de>
mdmon.c