diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-10-02 15:32:08 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-10-15 23:43:57 +0200 |
commit | 6144ed441445ee4d567614aaed78dd24148881ce (patch) | |
tree | 7c98537390691aca6739ea2ed9f4d151a9a9f027 /mdmon.h | |
parent | Treat all devices at the container level as spares (diff) | |
download | mdadm-6144ed441445ee4d567614aaed78dd24148881ce.tar.xz mdadm-6144ed441445ee4d567614aaed78dd24148881ce.zip |
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>
Diffstat (limited to 'mdmon.h')
-rw-r--r-- | mdmon.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -50,6 +50,7 @@ void do_manager(struct supertype *container); int make_control_sock(char *devname); int make_pidfile(char *devname, int o_excl); extern int socket_hup_requested; +extern int sigterm; int read_dev_state(int fd); int get_resync_start(struct active_array *a); |