]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: terminate clean
authorDan Williams <dan.j.williams@intel.com>
Thu, 2 Oct 2008 13:32:08 +0000 (06:32 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 15 Oct 2008 21:43:57 +0000 (14:43 -0700)
commit6144ed441445ee4d567614aaed78dd24148881ce
tree7c98537390691aca6739ea2ed9f4d151a9a9f027
parent57ed8c9155d31ca78c48979f4f98d40e4c0deac3
mdmon: terminate clean

We generally don't want mdmon to be terminated, but if a SIGTERM gets
through try to leave the monitored arrays in a clean state, block
attempts to mark the array dirty, and stop servicing the socket.

When we are killed by sigterm don't remove the pidfile let that be
cleaned up by the next monitor.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
managemon.c
mdmon.c
mdmon.h
monitor.c