GNU bug report logs -
#7359
sleep 9999999999
Previous Next
Full log
View this message in rfc822 format
[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)]
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)]
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.