From 0c27a18e0b7b5c922a78f472ed131a665fa01c0e Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Fri, 20 Jan 2012 00:01:53 +0530 Subject: cluster/dht: Exit clean when assert_no_child_down is enabled Change-Id: If90b1080edcf3792f8590492b585a6dd48fac18e BUG: 783249 Signed-off-by: Vijay Bellur Reviewed-on: http://review.gluster.com/2682 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include +#include 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++) { -- cgit