Thanks for contributing the patch, Jakub. I'm sorry that there's been no action on it; unfortunately, the BSD platforms don't get as much attention here as some others. I took a cursory look at it and the patch looks pretty good to me and applies/builds cleanly on OS X (even though support for EVFILT_USER is known to not be documented there). I think it would be good to add a test case to Lib/test/test_kqueue.py. Any other opinions?