Don't log in signal handler
This commit is contained in:
parent
6ed58628f5
commit
0fc9b555f1
1 changed files with 2 additions and 1 deletions
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;
|
||||||
|
|
Loading…
Reference in a new issue