joyent/libuv — pull request #968 by indutny (2013-10-23 20:30:47+00:00)
Title: unix: fix reopened fd bug

When fd is closed and new one (with the same number) is opened inside
kqueue/epoll/port loop's callback - stale events might invoke callbacks
on wrong watchers.

Check if watcher was changed after invocation and invalidate all events
with the same fd.

fix #826

/cc @bnoordhuis