diff src/event/modules/ngx_poll_module.c @ 251:c31c40540318

nginx-0.0.2-2004-02-04-23:30:08 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 04 Feb 2004 20:30:08 +0000
parents 1903c6821958
children 84b1c672ec5a
line wrap: on
line diff
--- a/src/event/modules/ngx_poll_module.c
+++ b/src/event/modules/ngx_poll_module.c
@@ -312,6 +312,13 @@ static int ngx_poll_process_events(ngx_l
                           event_list[i].events, event_list[i].revents);
         }
 
+        if (event_list[i].fd == -1) {
+
+            /* the disabled event, workaround for our possible bug */
+
+            continue;
+        }
+
         c = &ngx_cycle->connections[event_list[i].fd];
 
         if (c->fd == -1) {