rtc: disable interrupts in finalization
Don't leave interrupts enabled if chronyd is stopped when making an RTC measurement.
This commit is contained in:
parent
d66b2f2b24
commit
f5eb7daf20
1 changed files with 1 additions and 0 deletions
|
@ -566,6 +566,7 @@ RTC_Linux_Finalise(void)
|
|||
/* Remove input file handler */
|
||||
if (fd >= 0) {
|
||||
SCH_RemoveFileHandler(fd);
|
||||
switch_interrupts(0);
|
||||
close(fd);
|
||||
|
||||
/* Save the RTC data */
|
||||
|
|
Loading…
Reference in a new issue