summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2012-01-20 00:01:53 +0530
committerVijay Bellur <vijay@gluster.com>2012-02-19 01:42:49 -0800
commitbe0fdd8363fd3683c782d9fef86a1b9ffb38983a (patch)
treeebe39796e8e6ea9a27cc0f0f6f20982ba6b91a47 /xlators/cluster
parent82da7e9acf6c6091599835117439260f0505d528 (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/2664 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 360a432cd5f..d55750dde8d 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++) {