Patch for a bug in server/select.c

Bang Jun-Young bjy at mogua.org
Thu May 17 07:44:13 CDT 2001


> --- select.c.orig	Tue Jan 25 10:40:27 2000
> +++ select.c	Thu May 17 21:20:42 2001
> @@ -257,7 +257,11 @@
>              int i;
>              for (i = 0; i < nb_users; i++)
>              {
> +#ifdef __NetBSD__
> +		if (pollfd[i].revents & !(pollfd[i].revents & POLLNVAL))

Oops, it should be

> +		if (pollfd[i].revents && !(pollfd[i].revents & POLLNVAL))

Sorry for my mistake,

Jun-Young

-- 
Bang Jun-Young <bjy at mogua.org>

-------------- next part --------------
--- select.c.orig	Tue Jan 25 10:40:27 2000
+++ select.c	Thu May 17 21:39:38 2001
@@ -257,7 +257,11 @@
             int i;
             for (i = 0; i < nb_users; i++)
             {
+#ifdef __NetBSD__
+		if (pollfd[i].revents && !(pollfd[i].revents & POLLNVAL))
+#else		
                 if (pollfd[i].revents)
+#endif		
                 {
                     poll_users[i]->ops->poll_event( poll_users[i], pollfd[i].revents );
                     if (!--ret) break;


More information about the wine-patches mailing list