comparison src/event/modules/ngx_poll_module.c @ 314:d71c87d11b16

nginx-0.0.3-2004-04-14-09:57:36 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Apr 2004 05:57:36 +0000
parents 98f1a8028067
children 39b6f2df45c0
comparison
equal deleted inserted replaced
313:98f1a8028067 314:d71c87d11b16
64 64
65 if (event_list == NULL) { 65 if (event_list == NULL) {
66 nevents = 0; 66 nevents = 0;
67 } 67 }
68 68
69 if (cycle->old_cycle == NULL 69 if (ngx_process == NGX_PROCESS_WORKER
70 || cycle->old_cycle == NULL
70 || cycle->old_cycle->connection_n < cycle->connection_n) 71 || cycle->old_cycle->connection_n < cycle->connection_n)
71 { 72 {
72 ngx_test_null(list, 73 ngx_test_null(list,
73 ngx_alloc(sizeof(struct pollfd) * cycle->connection_n, 74 ngx_alloc(sizeof(struct pollfd) * cycle->connection_n,
74 cycle->log), 75 cycle->log),
391 event_list[i].events, event_list[i].revents); 392 event_list[i].events, event_list[i].revents);
392 } 393 }
393 394
394 if (event_list[i].fd == -1) { 395 if (event_list[i].fd == -1) {
395 /* 396 /*
396 * the disabled event, a workaround for our possible bug, see below 397 * the disabled event, a workaround for our possible bug,
398 * see the comment below
397 */ 399 */
398 continue; 400 continue;
399 } 401 }
400 402
401 c = &ngx_cycle->connections[event_list[i].fd]; 403 c = &ngx_cycle->connections[event_list[i].fd];