comparison src/event/modules/ngx_poll_module.c @ 119:cd54bcbaf3b5

nginx-0.0.1-2003-07-21-01:15:59 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 20 Jul 2003 21:15:59 +0000
parents 571bcbff82c5
children ef8c87afcfc5
comparison
equal deleted inserted replaced
118:5bf52498665c 119:cd54bcbaf3b5
62 62
63 if (event_list == NULL) { 63 if (event_list == NULL) {
64 nevents = 0; 64 nevents = 0;
65 } 65 }
66 66
67 if (cycle->old_cycle == NULL 67 if (cycle->old_cycle == NULL
68 || cycle->old_cycle->connection_n < cycle->connection_n) 68 || cycle->old_cycle->connection_n < cycle->connection_n)
69 { 69 {
70 ngx_test_null(list, 70 ngx_test_null(list,
71 ngx_alloc(sizeof(struct pollfd) * cycle->connection_n, 71 ngx_alloc(sizeof(struct pollfd) * cycle->connection_n,
72 cycle->log), 72 cycle->log),
270 ngx_event_expire_timers(delta); 270 ngx_event_expire_timers(delta);
271 271
272 } else { 272 } else {
273 if (ready == 0) { 273 if (ready == 0) {
274 ngx_log_error(NGX_LOG_ALERT, log, 0, 274 ngx_log_error(NGX_LOG_ALERT, log, 0,
275 "poll() returns no events without timeout"); 275 "poll() returned no events without timeout");
276 return NGX_ERROR; 276 return NGX_ERROR;
277 } 277 }
278 278
279 #if (NGX_DEBUG_EVENT) 279 #if (NGX_DEBUG_EVENT)
280 ngx_log_debug(log, "poll timer: %d, delta: %d" _ timer _ delta); 280 ngx_log_debug(log, "poll timer: %d, delta: %d" _ timer _ delta);