From 0fc9b555f1680441de0a20f7514a7416fea172f7 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 14 Feb 2011 18:19:58 +0100 Subject: [PATCH] Don't log in signal handler --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 754c672..bf2c242 100644 --- 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;