summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2012-01-20 00:01:53 +0530
committerAnand Avati <avati@gluster.com>2012-01-24 08:36:34 -0800
commit0c27a18e0b7b5c922a78f472ed131a665fa01c0e (patch)
tree0b7de039a263ce15793314c34462223a732b8e59
parent30755e5620aa32e27c36f70e025bd79c16772805 (diff)
cluster/dht: Exit clean when assert_no_child_down is enabled
Change-Id: If90b1080edcf3792f8590492b585a6dd48fac18e BUG: 783249 Signed-off-by: Vijay Bellur <vijay@gluster.com> Reviewed-on: http://review.gluster.com/2682 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r--xlators/cluster/dht/src/dht-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 65bfc3d1b..d2e2efad8 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -34,6 +34,7 @@
#include <sys/time.h>
#include <libgen.h>
+#include <signal.h>
void
@@ -5272,7 +5273,7 @@ dht_notify (xlator_t *this, int event, void *data, ...)
if (conf->assert_no_child_down) {
gf_log (this->name, GF_LOG_WARNING,
"Received CHILD_DOWN. Exiting");
- exit(0);
+ kill (getpid(), SIGTERM);
}
for (i = 0; i < conf->subvolume_cnt; i++) {