Hello guys!

I found a bug in 'sleep' command.
Please see below:

# date
Tue Oct  5 14:12:11 EEST 2010
[r...@gate ~]# sleep 36500d ; date
Sat Oct 30 10:38:44 EEST 2010
[r...@gate ~]#

As you can see - 'sleep' was terminated by himself after 24 days, 20 hours, 26 
minutes and 33 seconds.
24*24*3600 + 20*3600 + 26*60 + 33 = 2073600 + 72000 + 1560 + 33 = 2147193 
seconds
It seems like overflow.
coreutils 6.10-6
Debian 5.0.6  

--
A.P.



Reply via email to