Work around a bug in both the Linux and SunOS 64-bit kernels:
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Aug 2006 07:00:50 +0000 (07:00 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Aug 2006 07:00:50 +0000 (07:00 +0000)
commita50636ffed0c19358f6684e5f3a81fa88a4c7d4e
treea28312515548192c845e657bb77342c13d316515
parent7cfeb4eb50c3d24031d1e711ed34828df737daf6
Work around a bug in both the Linux and SunOS 64-bit kernels:
nanosleep mishandles sleeps for longer than 2**31 seconds.
Problem reported by Frank v Waveren in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
* lib/nanosleep.c (BILLION): New constant.
(getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
(rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new implementation.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
* modules/nanosleep (Depends-on): Add gettime.
ChangeLog
lib/ChangeLog
lib/nanosleep.c
m4/ChangeLog
m4/nanosleep.m4
modules/gettime