GNU bug report logs - #7359
sleep 9999999999

Previous Next

Package: coreutils;

Reported by: Matthew Bachmann <matt <at> itasoftware.com>

Date: Tue, 9 Nov 2010 19:35:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 7359 <at> debbugs.gnu.org (full text, mbox):

From: Michal Svoboda <pht <at> spatium.org>
To: 7359 <at> debbugs.gnu.org, P <at> draigBrady.com
Subject: Re: bug#7359: sleep 9999999999
Date: Thu, 11 Nov 2010 08:21:17 +0100
Pádraig Brady wrote:
> > matt <at> ita1bbx40,d1r17733u07 | strace -e nanosleep sleep 9999999999
> > nanosleep({9999999999, 0}, NULL)        = 0

Just out of curiosity, what's wrong with nanosleep({9999999999, 0} ?

The first argument should be time_t, which should not be prone to
something stupid like overflowing at 2 (or 4) billion or so.

Michal Svoboda




This bug report was last modified 14 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.