summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/run.c b/src/run.c
index 63761b4..cadcb4d 100644
--- a/src/run.c
+++ b/src/run.c
@@ -38,11 +38,13 @@ void killer(int foo)
sigprocmask(SIG_BLOCK, &STATE(block), NULL);
nfct_close(STATE(event));
- nfct_close(STATE(dump));
ignore_pool_destroy(STATE(ignore_pool));
local_server_destroy(&STATE(local));
STATE(mode)->kill();
+
+ nfct_close(STATE(dump)); /* cache_wt needs this here */
+
unlink(CONFIG(lockfile));
dlog(LOG_NOTICE, "---- shutdown received ----");
close_log();