kqueue/kevent and directories (Was: Equivalent of POLLERR for kqueue.)

Igor Sysoev is at rambler-co.ru
Wed Jan 4 06:03:27 PST 2006


On Tue, 13 Dec 2005, John-Mark Gurney wrote:

> Vaclav Haisman wrote this message on Wed, Dec 14, 2005 at 01:12 +0100:
>> On Tue, 13 Dec 2005, Vaclav Haisman wrote:
>>
>>> Is there equivalent of POLLERR for kqueue()? Or is EV_EOF the only thing?
>>> I would like to use kqueue/kevent for sockets but error condition
>>> signaling is not clear to me from manpage.
>
> It's up to the driver, but I don't believe that kqueue normally delivers
> errors back to the process...  it returns as ready, but needs to be checked
> manually via a call to the proper syscall...  (at least for sockets)..

Sorry for the late response, but kqueue delivers error code to process
in fflags (at least for sockets), so application does not need to call
unnecessary syscall to learn error code.


Igor Sysoev
http://sysoev.ru/en/


More information about the freebsd-hackers mailing list