Archived

This forum has been archived. Please start a new discussion on GitHub.

FreeBSD support for kqueue in networking (Selector code)

Hi,

while checking the networking source I learned that kqueue support is only enabled for Mac OS X. Afaik the kqueue and kevent interface are identical on both OSs (besides the difference that Apple also add a kevent64 structure and a corresponding call) and I also double checked that they way it is used looks ok for BSD. Is there any specific reason why FreeBSD wasn't added there or was it just not considered, because it's not an officially supported platform?

I changed Network.h to also define USE_KQUEUE, everything seems to work as expected. So you might consider applying the patch attached to this message to your next release.

cheers
Michael

Comments