On Wed, 6 Sep 2000, Andrey A. Chernov wrote:

> Please consider that we talk not about reads but about select. 'Select' is
> used to indicate that data is available while 'read' used to read it, they

No, select on a read descriptor returns successfully when the descriptor
is "ready" to read, whatever that means.  It normally means that a read
on the descriptor would not block (even if O_NONBLOCK is not set).  Reads
of EOF satisfy this condition.  This is normally the correct behaviour.
E.g., it prevents programs reading stdin via select() loop from hanging
when stdin is a pipe with no writers.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to