sources: remove dump files on start

When chronyd is starting, after the point where dump files are loaded,
remove all files in the dump directory that match the naming scheme used
for dump files. This prevents loading stale dump files that were not
saved in the latest run of chronyd.
This commit is contained in:
Miroslav Lichvar
2016-09-07 10:26:42 +02:00
parent fb5d4f1da4
commit a06a5f1baa
3 changed files with 41 additions and 1 deletions

1
main.c
View File

@@ -158,6 +158,7 @@ ntp_source_resolving_end(void)
SRC_ReloadSources();
}
SRC_RemoveDumpFiles();
RTC_StartMeasurements();
RCL_StartRefclocks();
NSR_StartSources();