From de598c23109cb1d416a123bb297902a7c120c525 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 30 Jun 2022 11:52:40 +0200 Subject: [PATCH] main: add log message for timeout reached with -t option This should make it more clear why chronyd exits if -q/-Q does not finish before the timeout is reached. --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 6a9463f..c40b5e4 100644 --- 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();