]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MAJOR] missing parenthesis in poll_loop() might have caused missed events.
authorwilly tarreau <willy@wtap.(none)>
Sun, 21 May 2006 14:26:20 +0000 (16:26 +0200)
committerwilly tarreau <willy@wtap.(none)>
Sun, 21 May 2006 14:26:20 +0000 (16:26 +0200)
haproxy.c

index b2526ce03e12208eb0d2eab401072cb4f627b269..5e08965d01aa54a26ec5a9fe7658d5d1d77fbcc5 100644 (file)
--- a/haproxy.c
+++ b/haproxy.c
@@ -7148,7 +7148,7 @@ int poll_loop(int action) {
       for (count = 0; status > 0 && count < nbfd; count++) {
          fd = poll_events[count].fd;
          
-         if (!poll_events[count].revents & ( POLLOUT | POLLIN | POLLERR | POLLHUP ))
+         if (!(poll_events[count].revents & ( POLLOUT | POLLIN | POLLERR | POLLHUP )))
              continue;
 
          /* ok, we found one active fd */