[lug] Returning from select

Tom Tromey tromey at redhat.com
Thu May 6 05:32:05 MDT 2004


>> If I have 4 fds and 1 becomes readable.
>> Would select immediately return or would it wait 
>> for 50 ms and then return however number of fds
>> readable at that time?

It will return immediately.  The timeout is "the maximum time to wait"
(quote from glibc docs).

Tom



More information about the LUG mailing list