Patch for a bug in server/select.c

Alexandre Julliard julliard at
Sun May 20 12:32:58 CDT 2001

Bang Jun-Young <bjy at> 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

Alexandre Julliard
julliard at

More information about the wine-devel mailing list