Bang Jun-Young bjy@mogua.org writes:
It has been observed that poll always returns POLLNVAL without waiting when fd is -1.
Then we cannot use the current code on NetBSD, otherwise we'll be eating 100% CPU as soon as an fd becomes -1. You'll probably need to do a poll() wrapper that removes the invalid fds before calling the real poll. Or you could ask the NetBSD folks to fix their implementation.