From 748ebfff42d8cd24d2dd215ca8e4fd973ab651a3 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 15 Aug 2014 14:11:56 +1000 Subject: [PATCH] ckdb - shutdown all threads --- src/ckdb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index 005da811..ee6e5592 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -7754,6 +7754,7 @@ static void *socketer(__maybe_unused void *arg) LOGWARNING("Listener received shutdown message, terminating ckdb"); snprintf(reply, sizeof(reply), "%s.%ld.ok.exiting", id, now.tv_sec); send_unix_msg(sockd, reply); + everyone_die = true; break; case CMD_PING: LOGDEBUG("Listener received ping request"); @@ -7909,9 +7910,6 @@ static void *socketer(__maybe_unused void *arg) tick(); - if (cmdnum == CMD_SHUTDOWN) - break; - if (trf_root) trf_root = free_ktree(trf_root, NULL); if (trf_store) {