mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 08:35:07 -05:00
sys: allow drivers to fail when applying step offset
Different systems may consider different time values to be valid. Don't exit on settimeofday()/adjtimex() error in case the check in UTI_IsTimeOffsetSane() isn't restrictive enough.
This commit is contained in:
5
local.c
5
local.c
@@ -528,7 +528,10 @@ LCL_ApplyStepOffset(double offset)
|
||||
if (!check_offset(&raw, offset))
|
||||
return 0;
|
||||
|
||||
(*drv_apply_step_offset)(offset);
|
||||
if (!(*drv_apply_step_offset)(offset)) {
|
||||
LOG(LOGS_ERR, LOGF_Local, "Could not step clock");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Reset smoothing on all clock steps */
|
||||
SMT_Reset(&cooked);
|
||||
|
||||
Reference in New Issue
Block a user