comparison src/event/modules/ngx_poll_module.c @ 3358:f94e8ff65aa2

add NGX_PROCESS_HELPER process status
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Nov 2009 15:46:21 +0000
parents a66d6dfd53f1
children 0299cf5856fc
comparison
equal deleted inserted replaced
3357:fc735aa50b8b 3358:f94e8ff65aa2
70 70
71 if (event_list == NULL) { 71 if (event_list == NULL) {
72 nevents = 0; 72 nevents = 0;
73 } 73 }
74 74
75 if (ngx_process == NGX_PROCESS_WORKER 75 if (ngx_process >= NGX_PROCESS_WORKER
76 || cycle->old_cycle == NULL 76 || cycle->old_cycle == NULL
77 || cycle->old_cycle->connection_n < cycle->connection_n) 77 || cycle->old_cycle->connection_n < cycle->connection_n)
78 { 78 {
79 list = ngx_alloc(sizeof(struct pollfd) * cycle->connection_n, 79 list = ngx_alloc(sizeof(struct pollfd) * cycle->connection_n,
80 cycle->log); 80 cycle->log);