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, May 10, 1999 at 03:28:37PM -0400, Richard B. Johnson wrote:
> `man select` on my system explicitly states;
>
> "On Linux, timeout is modified to reflect the amount of time
> not slept; most other implementations do not do this."
>
> Therefore, it should always be modified unless it returns instantly
> because there is activity on the fd.

Exactly, and when the timeout expires, it should be modified to be
{0,0}, not some random large value.

Anyway, it turned out it's a known bug, and a relatively minor one
too...

--
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    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog