Re: select() clobbering the timeout

Alex Buell (alex.buell@tahallah.demon.co.uk)
Tue, 11 May 1999 00:03:41 +0100 (BST)


On Mon, 10 May 1999, Roger Espel Llima wrote:

> $ ./mintest 0 1000
> tv_sec = 0, tv_usec = 1000
> tv_sec = 20936492, tv_usec = 650000
> $ ./mintest 1 0
> tv_sec = 1, tv_usec = 0
> tv_sec = 20936484, tv_usec = 550000
> $ ./mintest 2 0
> tv_sec = 2, tv_usec = 0
> ^C
> tv_sec = 1, tv_usec = 570000

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 0 1000
tv_sec = 0, tv_usec = 1000
tv_sec = 0, tv_usec = 0
tahallah[alex]:/home/alex/src/Linux/timeout > timeout 0 10000
tv_sec = 0, tv_usec = 10000
tv_sec = 0, tv_usec = 0
tahallah[alex]:/home/alex/src/Linux/timeout > timeout 1 0
tv_sec = 1, tv_usec = 0
tv_sec = 0, tv_usec = 0
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.

Cheers,
Alex
--
"A mind opened by new ideas can never return to its original limits"

http://www.tahallah.demon.co.uk

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