Don't finalise from signal handler

This commit is contained in:
Miroslav Lichvar
2009-04-29 13:53:02 +02:00
parent 8b81bfe41d
commit 9416a24f03
2 changed files with 4 additions and 2 deletions

3
main.c
View File

@@ -123,7 +123,8 @@ static void
signal_cleanup(int x)
{
LOG(LOGS_WARN, LOGF_Main, "chronyd exiting on signal");
MAI_CleanupAndExit();
if (!initialised) exit(0);
SCH_QuitProgram();
}
/* ================================================== */