From a3677248993cddbf6f406dccd313eda8759724fb Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 14 Apr 2004 05:57:36 +0000 Subject: nginx-0.0.3-2004-04-14-09:57:36 import --- src/event/modules/ngx_poll_module.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/event/modules/ngx_poll_module.c') diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c index 67c2dc001..dd98eca25 100644 --- 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 *cycle) 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 *cycle) 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; } -- cgit