Subject: bug#7359: closed (Re: bug#7359: sleep 9999999999)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 10 Nov 2010 22:27:02 +0000

Your bug report

#7359: sleep 9999999999

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
7359: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7359
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#7359: sleep 9999999999
From: Pádraig Brady <[email-masked]>
To: Matthew Bachmann <[email-masked]>
Cc: Eric Blake <[email-masked]>, [email-masked]
Date: Wed, 10 Nov 2010 22:30:49 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

On 10/11/10 18:20, Matthew Bachmann wrote:
> Existing stuff:
> 
> matt@ita1bbx40,d1r17733u07 | strace -e nanosleep sleep 9999999999
> nanosleep({9999999999, 0}, NULL)        = 0
> matt@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@ita1bbx40,d1r17733u07 | strace -e nanosleep src/sleep 9999999999
> nanosleep({4233600, 0},  <unfinished ...>
> matt@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.

Subject: sleep 9999999999
From: Matthew Bachmann <[email-masked]>
To: [email-masked]
Date: Tue, 9 Nov 2010 14:31:42 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

sleep called with very big numbers returns immediately with success

-Matt

matt@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@ita1bbx40,d1r17733u07 |