]> git.ipfire.org Git - thirdparty/chrony.git/commit
local: reset daemon after unexpected time jump
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Jun 2014 15:14:28 +0000 (17:14 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Jun 2014 15:38:32 +0000 (17:38 +0200)
commita33a955163c1af459af176b3fdc1c4c56b4f25f3
treeca0a9106a76193271527cfc2e40c4f3ceb2f7b75
parenta3e60c93da7e216ff76f72f73ed33775be369ede
local: reset daemon after unexpected time jump

Add a new change type and use it when an unexpected time jump is
detected in the scheduler to reset reference times, offset and slewing,
NCR instances (with their polling interval), synchronization status, and
drop all sourcestats, manual, refclock and RTC samples.

This should make the recovery more graceful if the estimated jump has a
large error (e.g. select didn't timeout, or after system suspend).
local.c
local.h
manual.c
ntp_sources.c
refclock.c
reference.c
rtc_linux.c
sources.c
sys_generic.c
test/simulation/005-externalstep