]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: remove unneeded code in signal handler
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Jul 2020 16:34:10 +0000 (18:34 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 16 Jul 2020 14:02:16 +0000 (16:02 +0200)
The handler is set up when the main code is already initialized.

main.c

diff --git a/main.c b/main.c
index 0a4b9eeb04636dc2b3e4c9d3af4477443180e415..0c9be367feb199f5e601887bbab608a8f2d82799 100644 (file)
--- a/main.c
+++ b/main.c
@@ -148,7 +148,6 @@ MAI_CleanupAndExit(void)
 static void
 signal_cleanup(int x)
 {
-  if (!initialised) exit(0);
   SCH_QuitProgram();
 }