From be0fdd8363fd3683c782d9fef86a1b9ffb38983a 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/2664 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/cluster/dht/src/dht-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src/dht-common.c') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 360a432cd..d55750dde 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4373,7 +4373,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