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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#7359: closed (sleep 9999999999)
Date: Wed, 10 Nov 2010 22:27:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 10 Nov 2010 22:30:49 +0000
with message-id <4CDB1D19.2090006 <at> draigBrady.com>
and subject line Re: bug#7359: sleep 9999999999
has caused the GNU bug report #7359,
regarding sleep 9999999999
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
7359: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7359
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Matthew Bachmann <matt <at> itasoftware.com>
To: bug-coreutils <at> gnu.org
Subject: sleep 9999999999
Date: Tue, 9 Nov 2010 14:31:42 -0500
sleep called with very big numbers returns immediately with success

-Matt

matt <at> ita1bbx40,d1r17733u07 | date; sleep 9999999999 && echo success; date; sleep --version
Tue Nov  9 14:31:04 EST 2010
success
Tue Nov  9 14:31:04 EST 2010
sleep (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering and Paul Eggert.
matt <at> ita1bbx40,d1r17733u07 | 



[Message part 3 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Matthew Bachmann <matt <at> itasoftware.com>
Cc: Eric Blake <eblake <at> redhat.com>, 7359-done <at> debbugs.gnu.org
Subject: Re: bug#7359: sleep 9999999999
Date: Wed, 10 Nov 2010 22:30:49 +0000
On 10/11/10 18:20, Matthew Bachmann wrote:
> Existing stuff:
> 
> matt <at> ita1bbx40,d1r17733u07 | strace -e nanosleep sleep 9999999999
> nanosleep({9999999999, 0}, NULL)        = 0
> matt <at> ita1bbx40,d1r17733u07 | rpm -qa | grep coreutils
> policycoreutils-1.33.12-14.2.el5
> coreutils-5.97-19.el5
> 
> With download you pointed me at:
> 
> matt <at> ita1bbx40,d1r17733u07 | strace -e nanosleep src/sleep 9999999999
> nanosleep({4233600, 0},  <unfinished ...>
> matt <at> ita1bbx40,d1r17733u07 | 
> 
> I ctrl-c'ed it because it appeared to be actually sleeping instead of returning immediately.  So yeah, it looks like it works fine with newer stuff.

Right, that confirms that it's sleeping for 49 days at a time.
I.E. the existing immediately detectable workaround is in place.

cheers,
Pádraig.


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.