]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: make sure we set safe_mode on SIGTERM.
authorNeilBrown <neilb@suse.de>
Mon, 2 Sep 2013 02:08:44 +0000 (12:08 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 2 Sep 2013 02:08:44 +0000 (12:08 +1000)
commit4e5e54cf820fef717085faece24c2e666b3649f2
treeab5204a1ac2b507fb46f9d84495c62e7f38171de
parenta792ece6768143ea557c63e35437536b9d235bb4
mdmon: make sure we set safe_mode on SIGTERM.

Without this, array may not go clean and mdmon will then
not exit.

A safe_mode of '0' (which is the only one that is handled differently
by this patch) means "never switch to 'active_idle'".  We don't want
that when mdmon is stopping.

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