I may have missed it in the man page, but I am unable to find a way to
determine how many kevents are currently registered within a kqueue. If
there is no method for a count, how about a way to find if a kqueue is
empty or not. Besides tracking what events are still within a kqueue,
this would make for an easier way to write an event loop. Currently,
calling kevent() on an empty kqueue will still block.
Also, I recommend that the man page mention that a kqueue may be
close(2)'d. The only reference that it can be is that the manual page
says the kqueue() call returns a descriptor.
Seán
--
[EMAIL PROTECTED]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"