comparison src/event/ngx_event.c @ 370:54f76b0b8dca

nginx-0.0.7-2004-06-27-22:01:57 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 27 Jun 2004 18:01:57 +0000
parents ceec87d1c2b3
children 744ccb59062d
comparison
equal deleted inserted replaced
369:9c2515d70489 370:54f76b0b8dca
263 263
264 c = cycle->connections; 264 c = cycle->connections;
265 for (i = 0; i < cycle->connection_n; i++) { 265 for (i = 0; i < cycle->connection_n; i++) {
266 c[i].fd = (ngx_socket_t) -1; 266 c[i].fd = (ngx_socket_t) -1;
267 c[i].data = NULL; 267 c[i].data = NULL;
268 #if (NGX_THREADS)
269 c[i].lock = 0;
270 #endif
268 } 271 }
269 272
270 cycle->read_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections, 273 cycle->read_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections,
271 cycle->log); 274 cycle->log);
272 if (cycle->read_events == NULL) { 275 if (cycle->read_events == NULL) {