diff src/event/modules/ngx_poll_module.c @ 314:d71c87d11b16

nginx-0.0.3-2004-04-14-09:57:36 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Apr 2004 05:57:36 +0000
parents 98f1a8028067
children 39b6f2df45c0
line wrap: on
line diff
--- a/src/event/modules/ngx_poll_module.c
+++ b/src/event/modules/ngx_poll_module.c
@@ -66,7 +66,8 @@ static int ngx_poll_init(ngx_cycle_t *cy
         nevents = 0;
     }
 
-    if (cycle->old_cycle == NULL
+    if (ngx_process == NGX_PROCESS_WORKER
+        || cycle->old_cycle == NULL
         || cycle->old_cycle->connection_n < cycle->connection_n)
     {
         ngx_test_null(list,
@@ -393,7 +394,8 @@ int ngx_poll_process_events(ngx_cycle_t 
 
         if (event_list[i].fd == -1) {
             /*
-             * the disabled event, a workaround for our possible bug, see below
+             * the disabled event, a workaround for our possible bug,
+             * see the comment below
              */
             continue;
         }