From 2a838790b8a545e95841cb216a7623b3d9560bce Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 31 May 2008 17:11:40 +0200 Subject: delay the closure of the dump descriptor to fix assertion with cache_wt --- src/run.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/run.c') 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(); -- cgit v1.2.3