OpenBSD Journal
Home : : Add Story : : Archives : : About : : Create Account : : Login :
Handling Leap Seconds the OpenBSD Way
Contributed by pitrh on Sun Jun 28 20:17:50 2015 (GMT)
from the bounded leaps dept.

Christian Weisberger (naddy@) let us all know what we need to do to prepare for the impending leap second:

As you may have heard, a leap second will be upon us at 23:59:60
UTC on June 30.

The sky will fall, civilization will end, and dinosaurs will roam
the earth again.  Well, maybe not.

Neither the OpenBSD kernel nor OpenNTPD handle leap seconds in any
way.  So what will happen?

After the leap second, your OpenBSD system's time will be off by,
well, one second.  Gasp, shock.  Let's say you synchronize your
clock with ntpd against a server that does have the correct time.
At the next poll, i.e. within about half an hour, ntpd will notice
the offset and correct it, which will take a few minutes.  That's
it.  (I expect ntpd will drop down to a short poll interval and the
frequency correction will fishtail a bit since it's a differentiator
reacting to a jump.)

Unless you obsessively watch your ntpd, you won't notice a thing.

All the terrible things you may read that might happen, or that did
happen to Linux in the past, are side effects of systems that do
attempt to handle leap seconds, so that they always have the correct
time at the price of a confusing extra second popping into existence.

Finally, if you are one of the exceedingly few people for whom the
clock being off by a second actually matters, then I'm pretty sure
you also know how to deal with it.

PS:
Any hate mail about leap seconds should be directed to (1) the
people who insist that Earth's celestial wobbling around must have
primacy for time keeping and (2) the people at POSIX who specified
that time_t must not include leap seconds, which means we can't
just let the time zone database handle this.

So, once more, the answer is: don't worry, OpenBSD does the right thing. Thanks to naddy@ for taking the time to let us know.

[topicopenbsd]

<< BSDCan 2015 Videos Online | Reply | Flattened | Expanded | Call for Testing: Valgrind on OpenBSD >>

Threshold: Help

Related Links
more by pitrh


  Re: Handling Leap Seconds the OpenBSD Way (mod 7/105)
by Anonymous Coward (176.10.104.243) on Sun Jun 28 14:00:27 2015 (GMT)
  daddy@? Now that is an awesome typo.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod 6/106)
by Bob Beck (37.0.204.144) (beck@openbsd.org) on Sun Jun 28 18:27:43 2015 (GMT)
  Naddy's a Daddy? Now that's awesome. Why wasn't that the lead to this article?
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod -1/103)
by Bob Beck (37.0.204.144) (beck@openbsd.org) on Sun Jun 28 18:27:44 2015 (GMT)
  Naddy's a Daddy? Now that's awesome. Why wasn't that the lead to this article?
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod 3/109)
by Anonymous Coward (86.169.107.168) on Mon Jun 29 00:34:22 2015 (GMT)
  > So, once more, the answer is: don't worry, OpenBSD does the right thing.

No, OpenBSD doesn't do the right thing. It does a practical but wrong thing. That's what the answer pretty clearly says. So maybe take off your fanboy hat for (the leap) one second. It might be practical for many consumers. But if you (exceedingly few, really?) really have to worry about time then the solution is not to use OpenBSD and pick a system that actually does the right thing.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod 10/96)
by Anonymous Coward (173.174.38.161) on Mon Jun 29 18:31:56 2015 (GMT)
  Simplicity is good. If anyone is wondering what this can look like without it, check out the advisory Aruba Networks sent to its customers over the leap second. They expect the Linux based APs they make to crash and reboot if NTP is enabled!

http://community.arubanetworks.com/aruba/attachments/aruba/unified-wired-wireless-access/49619/1/ARUBA-PFB-20150430_Leap_Second_Field_Bulletin_Rev-3.0511.pdf
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod 6/94)
by Just Another OpenBSD User (77.85.139.241) on Sat Jul 4 08:49:04 2015 (GMT)
  About the stupidest thing to do is accounting for lame handling downstream and bend over backwards with pre-emptive skew also called "leap smear". Instead of fixing the implementations that break, cover it up... in a ciscoesque mode.

Now you face inaccurate time before the event with an unpredictable degree of uncertainty for a while and on top of that program errors. Because we all know for a long "time" from other areas: most people can't count unless using fingers when creating programs. Including TV schedule programming.

Then again, why not create "another" time scale with a new set of incompatibilities in a Linux fashion, no thanks. OpenBSD's OpenNTPD does the right thing, as expected.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod -1/95)
by bnt (107.155.85.172) (minseylena@gmail.com) on Tue Aug 2 18:14:45 2016 (GMT)
  تعتبر العاب ماكياج وتلبيس بنات لعبة رائعة تبحث عنها جميع الفتيات من محبات موقع العاب بنات ستايل اللواتي اعتدن على الدخول لقسم العاب تلبيس بنات الرائع، حيث أن اللعبة تتوفر على الكثير من القطع الواجب عليك تلبيسها لفتاتنا الجميلة لتظهر في ابهى حلة،
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod -2/34)
by mxffiles (218.11.246.179) on Tue Feb 7 06:27:02 2017 (GMT)
  This is a very good post which I really enjoy reading. It is not every day that I have the possibility to see something like this. Software mxf Software mxf converter free download to convert HD camcorder files. ts converter convert ts video files to avi, mp4, wmv, mov mts to avi mp4 mov mkv iMovie, FCP/FCE with mts converter, so to convert mts files for your PC and mobiles. mod converter and convert tod files just free download mod video converter. m2ts
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: Handling Leap Seconds the OpenBSD Way (mod 0/0)
by Felicity KeFith (keFith520) (zlgigr114@sina.com) on Tue May 30 06:42:10 2017 (GMT)
  The name of writer is Tuan Hose but people always misspell everything. Montana is where my house. Administering databases is her profession. One of what exactly she loves most is computers and she or he is trying to make it an occupation. He's been working with his website for some time now. Keep reading here: language of desire keith
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

[ Home | Add Story | Archives | Polls | About ]

Copyright © 2004-2008 Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to April 2nd 2004 as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. Some icons from slashdot.org used with permission from Kathleen. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. Search engine is ht://Dig. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]