]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdmon.c
mdmon: suicide prevention
authorDan Williams <dan.j.williams@intel.com>
Fri, 3 Oct 2008 05:26:00 +0000 (22:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 15 Oct 2008 21:43:57 +0000 (14:43 -0700)
commit8aae4219a2668acb88ad2777dacf69de941e7e07
tree533acdffcee795e26334ae60dbd35ef2989173b6
parent27dec8fae303ab356aa786e20414f89d60be08a4
mdmon: suicide prevention

mdmon cannot remove the pidfile at shutdown becuase it needs to stay
running across the "mount -o remount,ro /" event.  When it relaunches
after a reboot there is a good chance that the pid will match what was
there previously.  The result is that the "take over for unresponsive
mdmon" logic results in self termination.

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