Re: Select 2.1.65

H. Peter Anvin (hpa@transmeta.com)
18 Nov 1997 07:49:17 GMT


Followup to: <199711180610.TAA04625@cyphercom.com>
By author: Chris Wedgwood <chris@cyphercom.com>
In newsgroup: linux.dev.kernel
>
> I see select(2) has been restored to its `original' status of updating the
> timeout....
>
> Out of curiosity, why was this done?
>

It broke nfsd under heavy load. The Linux-specific behaviour is
actually "better" in the sense that standard Unix behaviour can be
easily emulated from Linux behaviour but not vice versa.
Unfortunately, it breaks poorly writted software.

If your program relies on broken behaviour, for now, link with -lbsd;
hopefully glibc will have this by default (with __select() as the
Linux-specific variant; this is what currently happens with -lbsd.)

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables