mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 04:55:06 -05:00
Don't log in signal handler
This commit is contained in:
3
main.c
3
main.c
@@ -114,7 +114,6 @@ MAI_CleanupAndExit(void)
|
|||||||
static void
|
static void
|
||||||
signal_cleanup(int x)
|
signal_cleanup(int x)
|
||||||
{
|
{
|
||||||
LOG(LOGS_WARN, LOGF_Main, "chronyd exiting on signal");
|
|
||||||
if (!initialised) exit(0);
|
if (!initialised) exit(0);
|
||||||
SCH_QuitProgram();
|
SCH_QuitProgram();
|
||||||
}
|
}
|
||||||
@@ -397,6 +396,8 @@ int main
|
|||||||
the scheduler. */
|
the scheduler. */
|
||||||
SCH_MainLoop();
|
SCH_MainLoop();
|
||||||
|
|
||||||
|
LOG(LOGS_INFO, LOGF_Main, "chronyd exiting");
|
||||||
|
|
||||||
MAI_CleanupAndExit();
|
MAI_CleanupAndExit();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user