]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't log in signal handler
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 14 Feb 2011 17:19:58 +0000 (18:19 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 14 Feb 2011 17:19:58 +0000 (18:19 +0100)
main.c

diff --git a/main.c b/main.c
index 754c672e2f30cd8d7d95674f4938badc47e9e0a8..bf2c2426e3bf477d76a106032f825a21d60698a2 100644 (file)
--- a/main.c
+++ b/main.c
@@ -114,7 +114,6 @@ MAI_CleanupAndExit(void)
 static void
 signal_cleanup(int x)
 {
-  LOG(LOGS_WARN, LOGF_Main, "chronyd exiting on signal");
   if (!initialised) exit(0);
   SCH_QuitProgram();
 }
@@ -397,6 +396,8 @@ int main
      the scheduler. */
   SCH_MainLoop();
 
+  LOG(LOGS_INFO, LOGF_Main, "chronyd exiting");
+
   MAI_CleanupAndExit();
 
   return 0;