joyent/libuv — pull request #622 by indutny (2012-11-12 08:47:44+00:00)
Title: unix: use select() for specific fds on OS X

kqueue(2) on osx doesn't work (emits EINVAL error) with specific fds
(i.e. /dev/tty, /dev/null, etc). When given such descriptors - start
select(2) watcher thread that will emit io events.

@bnoordhuis "Select hack returns ;)"