nginx-0.0.3-2004-04-14-09:57:36 import
diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c
index 67c2dc0..dd98eca 100644
--- a/src/event/modules/ngx_poll_module.c
+++ b/src/event/modules/ngx_poll_module.c
@@ -66,7 +66,8 @@
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 @@
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;
}