Mercurial > hg > nginx-quic
comparison src/event/modules/ngx_epoll_module.c @ 312:f5431a4bbc7d
nginx-0.0.3-2004-04-13-09:27:03 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 13 Apr 2004 05:27:03 +0000 |
parents | 11ff50a35d6d |
children | 98f1a8028067 |
comparison
equal
deleted
inserted
replaced
311:11ff50a35d6d | 312:f5431a4bbc7d |
---|---|
432 | 432 |
433 if (event_list[i].events & EPOLLOUT) { | 433 if (event_list[i].events & EPOLLOUT) { |
434 c->write->returned_instance = instance; | 434 c->write->returned_instance = instance; |
435 } | 435 } |
436 | 436 |
437 #if (NGX_DEBUG) | |
438 log = c->log ? c->log : cycle->log; | |
439 #endif | |
440 | |
441 if (c->read->instance != instance) { | 437 if (c->read->instance != instance) { |
442 | 438 |
443 /* | 439 /* |
444 * the stale event from a file descriptor | 440 * the stale event from a file descriptor |
445 * that was just closed in this iteration | 441 * that was just closed in this iteration |
446 */ | 442 */ |
447 | 443 |
448 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0, | 444 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
449 "epoll: stale event " PTR_FMT, c); | 445 "epoll: stale event " PTR_FMT, c); |
450 continue; | 446 continue; |
451 } | 447 } |
448 | |
449 #if (NGX_DEBUG) | |
450 log = c->log ? c->log : cycle->log; | |
451 #endif | |
452 | 452 |
453 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, log, 0, | 453 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, log, 0, |
454 "epoll: fd:%d ev:%04X d:" PTR_FMT, | 454 "epoll: fd:%d ev:%04X d:" PTR_FMT, |
455 c->fd, event_list[i].events, event_list[i].data); | 455 c->fd, event_list[i].events, event_list[i].data); |
456 | 456 |