mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
rtc: disable interrupts in finalization
Don't leave interrupts enabled if chronyd is stopped when making an RTC measurement.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user