I wrote a small program to test if a given stdin is supported by
kqueue, poll and select:
https://gist.github.com/phonohawk/5169980#file-kqueue-poll-select-cpp
MacOS X 10.5.8 is hopelessly broken. We can't use anything other than
select(2) for tty and other devices:
https://gist.github.com/phonohawk/5169980#file-powerpc-apple-darwin9-8-0-txt
Note also that no implementations of kqueue
support monitoring writability of regular file writes, which also
endangers the current use of kqueue-based I/O manager namely
"threadWaitWrite".