[ntp:questions] Re: ntp servers reporting leap second erroneously?

Danny Mayer mayer at gis.net
Wed Oct 26 02:17:39 UTC 2005


David L. Mills wrote:
> Terje,
> 
> The NTP daemon has no idea how to handle leapseconds, only to notify the
> kernel that one is to occur. You should ask the kernel how it does that.
> As described in the white papers at the NTP project page, one approach
> is to stop the clock at the end of the previous day and start it up
> again one second later. Whatever method you use, you want to slow the
> clock progress down during the second, not speed it up.
> 
> The method used in the kernels that have my code is to actually set the
> kernel time variable back one second, but force the clock value returned
> to the caller always to be monotonically increasing, even if at a slow
> rate. There is a diagram and detailed discussion in the white paper.
> 
> Dave

That's exactly what I would recommend be implemented.

Danny



More information about the questions mailing list