mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 12:05:08 -05:00
reference: exit with non-zero code when maxchange limit is reached
Use ending of normal mode to signal a failure.
This commit is contained in:
@@ -580,7 +580,7 @@ is_offset_ok(double offset)
|
||||
"Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
|
||||
offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
|
||||
if (!max_offset_ignore)
|
||||
SCH_QuitProgram();
|
||||
end_ref_mode(0);
|
||||
else if (max_offset_ignore > 0)
|
||||
max_offset_ignore--;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user