Kqueue queries
James Bailie
jimmy at mammothcheese.ca
Tue Jun 12 21:27:58 UTC 2007
Cole wrote:
> If I do the above, and just keep increasing number_events and
> just mark the kevent as EV_DISABLED or EV_DELETE then all it
> does is return that event as soon as I call kevent() with the
> following values: ident : 7, filter : -1, flags : 16384
That flags value is EV_ERROR. It indicates your attempt to
register an event on a closed descriptor. You do not need to
disable or delete events manually if the descriptor is closed,
if that was the intent. Closing a descriptor causes all events
registered on it to be removed automatically. You need to get
those events for closed descriptors out of your input queue.
--
James Bailie <jimmy at mammothcheese.ca>
http://www.mammothcheese.ca
More information about the freebsd-hackers
mailing list