Re: Patch for a bug in server/select.c
Bang Jun-Young <bjy(a)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. -- Alexandre Julliard julliard(a)winehq.com
On Sun, May 20, 2001 at 10:32:58AM -0700, Alexandre Julliard wrote:
Bang Jun-Young <bjy(a)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.
I'll put it on my TODO list. :) Thanks for your comments. Jun-Young -- Bang Jun-Young <bjy(a)mogua.org>
participants (2)
-
Alexandre Julliard -
Bang Jun-Young