mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 05:35:06 -05:00
The optimization avoiding unnecessary setting of the kernel leap status can cause a problem when something outside chronyd sets the status to the new expected value. There will be no TMX_SetLeap() call which would update the saved status and the kernel status will be overwritten with the old (incorrect) value in a later TMX_*() call. Always call TMX_SetLeap() to save the new value and for the log message selection just check if a leap second has been applied.
13 KiB
13 KiB