+* [Bug 508] Fixed leap second handling for Windows.
(4.2.5p250-RC) 2009/11/30 Released by Harlan Stenn <stenn@ntp.org>
* sntp documentation updates.
* [Bug 761] internal resolver does not seem to honor -4/-6 qualifiers
if (!(pll_control && kern_enable))
step_systime(-1.0);
#else /* KERNEL_PLL */
+#ifndef SYS_WINNT /* WinNT port has its own leap second handling */
step_systime(-1.0);
+#endif /* SYS_WINNT */
#endif /* KERNEL_PLL */
report_event(EVNT_LEAP, NULL, NULL);
} else {
* If a leap second is pending then determine the UTC time stamp
* of when the insertion must take place
*/
- if (leap_sec > 0)
+ if (leapsec > 0)
{
if ( ls_ft.ull == 0 ) /* time stamp has not yet been computed */
{
}
}
}
+ else
+ {
+ if ( ls_ft.ull ) /* Leap second has been armed before */
+ {
+ /*
+ * Disarm leap second only if the leap second
+ * is not already in progress.
+ */
+ if ( !ls_time_adjustment )
+ {
+ ls_ft.ull = 0;
+ msyslog( LOG_NOTICE, "Leap second announcement disarmed" );
+ }
+ }
+ }
+
-
/*
* If the time stamp for the next leap second has been set
* then check if the leap second must be handled