diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-14 05:57:36 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-14 05:57:36 +0000 |
commit | a3677248993cddbf6f406dccd313eda8759724fb (patch) | |
tree | 85471aeb0cd73f8ae0deb50e1f4f059522c69245 /src/event/modules/ngx_poll_module.c | |
parent | 3d54061602b20fa5a6fdf55b11cb333285d61d03 (diff) | |
download | nginx-a3677248993cddbf6f406dccd313eda8759724fb.tar.gz nginx-a3677248993cddbf6f406dccd313eda8759724fb.zip |
nginx-0.0.3-2004-04-14-09:57:36 import
Diffstat (limited to 'src/event/modules/ngx_poll_module.c')
-rw-r--r-- | src/event/modules/ngx_poll_module.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |