lkml.org 
[lkml]   [1999]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: select() clobbering the timeout
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog