Subject: Re: bug#7359: sleep 9999999999

From: Pádraig Brady <[email-masked]>
Date: Wed, 10 Nov 2010 22:30:49 +0000

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.