server: fix connect failures on newer kernels
Dmitry Timoshkov
dmitry at codeweavers.com
Mon Jan 24 03:16:26 CST 2011
Marcus Meissner <marcus at jet.franken.de> wrote:
> > diff --git a/server/sock.c b/server/sock.c
> > index d37a316..134efb0 100644
> > --- a/server/sock.c
> > +++ b/server/sock.c
> > @@ -388,6 +388,9 @@ static void sock_poll_event( struct fd *fd, int event )
> >
> > if (sock->state & FD_CONNECT)
> > {
> > + if (event & POLLOUT && event & (POLLERR|POLLHUP))
> > + event &= ~POLLOUT;
>
> Add more braces to make the operator precedence a bit more clear...
> (just a style issue though)
Or probably more simple
if (event & (POLLERR|POLLHUP))
event &= ~POLLOUT;
--
Dmitry.
More information about the wine-devel
mailing list