From: rgooch@rp.CSIRO.AU (Richard Gooch) Subject: Re: select() ? Date: Sun, 14 Feb 1993 03:15:35 GMT
> >Why does select() change the timeout (last argument)?
>
> As this was pointed out as a bug in the SunOS implementation, I
> naturally went for the correct behaviour, and only later learned that
> nobody else seem to do this :-)
>
> As it is, I think the current linux behaviour is the correct one, and I
> think the timeout problems in the libraries have been fixed (look for
> libc.a.4.3 in the near future). I won't change the behaviour: if
> anybody really wants the "normal" behaviour, you can easily make a dummy
> select() call which copies the values around to an internal buffer
> before calling the system call... I'd prefer it if programs were
> re-written not to count on the current SunOS "bugs", in which case
> they'll work correctly under linux.
>
> Linus
Hear, hear. I've used select(2) on a variety of Un*xes, and have always
grumbled that none returned time-left information. I consider the linux call
a great leap forward. Hopefully U.I and OSF will get it right one day.
Regards,
Richard Gooch....