fascinating. thank you very much for your efforts into something that the linux community clearly needed resolved.
how did you decide to make it 10 seconds offset? does that include a substantial padding against unstably reset clocks?
...
/* Calculate the next leap second */
tv.tv_sec += 86400 - tv.tv_sec % 86400;
/* Set the time to be 10 seconds from that time */
tv.tv_sec -= 10;
settimeofday(&tv, NULL);
...
Posted Jul 2, 2012 9:36 UTC (Mon) by benja (guest, #70385)
[Link]
Hi, I think your confused: this is a user mode test case to trigger the bug, not the actual kernel fix. IIUC, the code is setting system time 10 seconds before the next day (23:59:50 UTC) then tells the kernel that it needs to insert a leap second, which will be done at 23:59:60. BR.
Kernel prepatch 3.5-rc5
Posted Jul 2, 2012 15:15 UTC (Mon) by theophrastus (guest, #80847)
[Link]
you're correct, (i'm incorrect), i read the "proposed fix thread" and 'leap'ed that it was a proposed fix patch. ...shutt'n-up now boss.