summaryrefslogtreecommitdiffstats
path: root/mdmon.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-10-02 15:32:08 +0200
committerDan Williams <dan.j.williams@intel.com>2008-10-15 23:43:57 +0200
commit6144ed441445ee4d567614aaed78dd24148881ce (patch)
tree7c98537390691aca6739ea2ed9f4d151a9a9f027 /mdmon.h
parentTreat all devices at the container level as spares (diff)
downloadmdadm-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdmon.h b/mdmon.h
index 41222e1c..2ce1fe69 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -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);