]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sched: fix handling of signals after finalization
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 15 Apr 2016 12:49:03 +0000 (14:49 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 15 Apr 2016 12:49:03 +0000 (14:49 +0200)
Don't require the scheduler to be initialized in SCH_QuitProgram().
This fixes a crash when a signal is received between scheduler
finalization and chronyd exit.

sched.c

diff --git a/sched.c b/sched.c
index 6083c97a447baae0fa9418f7c2ca3882d5afe4ac..bab926aaef66ef944ee72bd2071a91d43b8efdb8 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -719,7 +719,6 @@ SCH_MainLoop(void)
 void
 SCH_QuitProgram(void)
 {
-  assert(initialised);
   need_to_exit = 1;
 }