]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't call finalise functions on fatal error
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Jun 2013 10:28:00 +0000 (12:28 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Jun 2013 10:28:00 +0000 (12:28 +0200)
Also, return with non-zero exit code.

logging.c

index 1d15a9059cdadf4feea10c2404f7f7a42675a47f..cc63f1fbcbba79d101c72a4d98748b0b5e639242 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -29,7 +29,6 @@
 
 #include "sysincl.h"
 
-#include "main.h"
 #include "conf.h"
 #include "logging.h"
 #include "mkdirpp.h"
@@ -158,7 +157,7 @@ LOG_Fatal_Function(LOG_Facility facility, const char *format, ...)
   }
 #endif
 
-  MAI_CleanupAndExit();
+  exit(1);
 }
 
 /* ================================================== */