Marcus Meissner marcus@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;