comparison src/event/modules/ngx_select_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
79 FD_ZERO(&master_read_fd_set); 79 FD_ZERO(&master_read_fd_set);
80 FD_ZERO(&master_write_fd_set); 80 FD_ZERO(&master_write_fd_set);
81 nevents = 0; 81 nevents = 0;
82 } 82 }
83 83
84 if (ngx_process == NGX_PROCESS_WORKER 84 if (ngx_process >= NGX_PROCESS_WORKER
85 || cycle->old_cycle == NULL 85 || cycle->old_cycle == NULL
86 || cycle->old_cycle->connection_n < cycle->connection_n) 86 || cycle->old_cycle->connection_n < cycle->connection_n)
87 { 87 {
88 index = ngx_alloc(sizeof(ngx_event_t *) * 2 * cycle->connection_n, 88 index = ngx_alloc(sizeof(ngx_event_t *) * 2 * cycle->connection_n,
89 cycle->log); 89 cycle->log);