[1187] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: select: strange behaviour

daemon@ATHENA.MIT.EDU (Erik Troan)
Tue Oct 10 00:24:40 1995

Date: Mon, 9 Oct 1995 16:57:49 -0400 (EDT)
From: Erik Troan <ewt@redhat.com>
To: Norbert Thies <norbert@taz.de>
cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.SV4.3.91.951009093146.23127A-100000@mogli>

On Mon, 9 Oct 1995, Norbert Thies wrote:

> After the timeout has expired, tv.tv_sec == 0,
> ie. the value of 'tv' has been changed in 'select'.
> Since all other *IX systems I tried, do preserve
> the original value it breaks code (actually: archie-1.4.1).
> 
> Do you consider this behaviour a feature or is it a bug?

POSIX says the timeout value should be changed. Most other Unix vendors
don't actually do so, but Linux is following the POSIX requirement here.

Erik

-------------------------------------------------------------------------------
 "Eggheads unite!  You have nothing to lose but your yolks" - Adlai Stevenson

    Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu


home help back first fref pref prev next nref lref last post