On Wed, 19 Mar 2003, Peter Pentchev wrote:

> Actually, I wonder if I have answered my own question.  dnscache seems
> to use poll(2), and it would be poll(2)'s task to notify the program of
> any exceptional (error) conditions.  I wonder if it is possible that
> dnscache does not handle POLLERR properly... Let me check.

Everything in poll() except flags for non-exceptional i/o is defective
in FreeBSD.  E.g., POLLERR is not ever referenced in `find /sys/ -name
*.c`, and POLLHUP is only supported for keyboards, ptys, very dead
ttys (ones with no tty struct but not hung up ones), ordinary pipes
and revoked fd's.

write(2) may still fail after poll(2) finds something to write on
because anything may go away after it is found.

Bruce

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

Reply via email to