mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -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 */
|
/* Remove input file handler */
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
SCH_RemoveFileHandler(fd);
|
SCH_RemoveFileHandler(fd);
|
||||||
|
switch_interrupts(0);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
/* Save the RTC data */
|
/* Save the RTC data */
|
||||||
|
|||||||
Reference in New Issue
Block a user