diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-10-03 00:42:57 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-10-15 23:43:57 +0200 |
commit | 883a6142e64c6ed3e0dfeb28b2d9e48ddafd4c18 (patch) | |
tree | a476f8f2b2aab73759952579599b9bf96bd02d94 /mdmon.h | |
parent | mdmon: terminate clean (diff) | |
download | mdadm-883a6142e64c6ed3e0dfeb28b2d9e48ddafd4c18.tar.xz mdadm-883a6142e64c6ed3e0dfeb28b2d9e48ddafd4c18.zip |
mdmon: wait after trying to kill
Now that mdmon handles sigterm if another monitor wants to take over it
should wait until all managed arrays are clean. So make WaitClean()
available to mdmon and teach try_kill_monitor() to wait on each subarray
in the container.
...since we may be communicating with a dieing process, we need to
block SIGPIPE earlier.
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
@@ -54,6 +54,7 @@ extern int sigterm; int read_dev_state(int fd); int get_resync_start(struct active_array *a); +int is_container_member(struct mdstat_ent *mdstat, char *container); struct mdstat_ent *mdstat_read(int hold, int start); |