mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
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.
This commit is contained in:
2
main.c
2
main.c
@@ -166,6 +166,8 @@ signal_cleanup(int x)
|
|||||||
static void
|
static void
|
||||||
quit_timeout(void *arg)
|
quit_timeout(void *arg)
|
||||||
{
|
{
|
||||||
|
LOG(LOGS_INFO, "Timeout reached");
|
||||||
|
|
||||||
/* Return with non-zero status if the clock is not synchronised */
|
/* Return with non-zero status if the clock is not synchronised */
|
||||||
exit_status = REF_GetOurStratum() >= NTP_MAX_STRATUM;
|
exit_status = REF_GetOurStratum() >= NTP_MAX_STRATUM;
|
||||||
SCH_QuitProgram();
|
SCH_QuitProgram();
|
||||||
|
|||||||
Reference in New Issue
Block a user