lkml.org 
[lkml]   [1999]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: select() clobbering the timeout
On Tue, May 11, 1999 at 08:33:22PM +0200, Carlos Costa Portela wrote:
> Not only there:
>
> aragorn[~/programas/timeout]% uname -a
> Linux aragorn 2.0.35 #1 sáb oct 10 13:02:33 CEST 1998 i686 unknown
> aragorn[~/programas/timeout]% ./ptime 0 1000
> tv_sec = 0, tv_usec = 1000
> tv_sec = 0, tv_usec = 0
> aragorn[~/programas/timeout]% ./ptime 1 0
> tv_sec = 1, tv_usec = 0
> tv_sec = 0, tv_usec = 0
> aragorn[~/programas/timeout]% ./ptime 2 0
> tv_sec = 2, tv_usec = 0
> tv_sec = 0, tv_usec = 0

the box that started doing this only did after some 250 days of uptime.

it turns out that the problem was already known (Ville Herva found and
diagnosed it a month or so ago), and occurs when jiffies wraps around
the 2^31 limit. see:

http://www.linuxhq.com/lnxlists/linux-kernel/lk_9904_04/msg00740.html
http://www.linuxhq.com/lnxlists/linux-kernel/lk_9904_04/msg00764.html

--
Roger Espel Llima, espel@llaic.u-clermont1.fr
http://www.eleves.ens.fr:8080/home/espel/index.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.136 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site