Re: select() clobbering the timeout

Ville Herva (vherva@babbage.tky.hut.fi)
Wed, 12 May 1999 00:30:56 +0300


On Mon, 10 May 1999, Roger Espel Llima wrote:
> > tv_sec = 20936484, tv_usec = 550000
>
> tahallah[alex]:/home/alex/src/Linux/timeout > uname -a
> Linux tahallah 2.2.7 #20 SMP Thu Apr 29 21:26:02 BST 1999 i686
> tahallah[alex]:/home/alex/src/Linux/timeout > timeout 2 0
> tv_sec = 2, tv_usec = 0
> tv_sec = 0, tv_usec = 0
>
> Seems to behave differently in 2.2.x kernels.

But did you set the jiffies value to > 2^31, since this is a jiffies
handling related overflow in sys_times()? (I don't suppose you have
over 248 day uptime considering the time of the compilation of the
kernel of yours.)

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
http://www.linuxhq.com/lnxlists/linux-kernel/lk_9904_04/msg00880.html
http://www.linuxhq.com/lnxlists/linux-kernel/lk_9904_04/msg00901.html

-- v --

v@iki.fi

-
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/