]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: close logs as last thing before exit
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 26 May 2017 10:50:47 +0000 (12:50 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 26 May 2017 11:33:53 +0000 (13:33 +0200)
This should prevent losing messages from other finalisation code.

main.c

diff --git a/main.c b/main.c
index 2060269c80e333ffc336ddce329b48f99e980f85..e64081ab7107419593165fbebb7d5b4efc0ce285 100644 (file)
--- 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);
 }