From b712c100d7264a92741365a158f991e29b5aa8fa Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 26 May 2017 12:50:47 +0200 Subject: [PATCH] main: close logs as last thing before exit This should prevent losing messages from other finalisation code. --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index 2060269..e64081a 100644 --- a/main.c +++ b/main.c @@ -127,9 +127,8 @@ MAI_CleanupAndExit(void) delete_pidfile(); CNF_Finalise(); - LOG_Finalise(); - HSH_Finalise(); + LOG_Finalise(); exit(exit_status); }