]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: add log message for timeout reached with -t option
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Jun 2022 09:52:40 +0000 (11:52 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Jun 2022 12:46:18 +0000 (14:46 +0200)
This should make it more clear why chronyd exits if -q/-Q does not
finish before the timeout is reached.

main.c

diff --git a/main.c b/main.c
index 6a9463fe1b9136e947676947f4405e6b135b5a59..c40b5e4bb4445786e2732a9e2ebd151278a482d3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -166,6 +166,8 @@ signal_cleanup(int x)
 static void
 quit_timeout(void *arg)
 {
+  LOG(LOGS_INFO, "Timeout reached");
+
   /* Return with non-zero status if the clock is not synchronised */
   exit_status = REF_GetOurStratum() >= NTP_MAX_STRATUM;
   SCH_QuitProgram();