comparison src/event/modules/ngx_epoll_module.c @ 311:11ff50a35d6d

nginx-0.0.3-2004-04-12-20:38:09 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 12 Apr 2004 16:38:09 +0000
parents 2e899477243a
children f5431a4bbc7d
comparison
equal deleted inserted replaced
310:a9a9af2c7370 311:11ff50a35d6d
261 * before the closing the file descriptor 261 * before the closing the file descriptor
262 */ 262 */
263 263
264 if (flags & NGX_CLOSE_EVENT) { 264 if (flags & NGX_CLOSE_EVENT) {
265 ev->active = 0; 265 ev->active = 0;
266 ev->posted = 0;
266 return NGX_OK; 267 return NGX_OK;
267 } 268 }
268 269
269 c = ev->data; 270 c = ev->data;
270 271
435 436
436 #if (NGX_DEBUG) 437 #if (NGX_DEBUG)
437 log = c->log ? c->log : cycle->log; 438 log = c->log ? c->log : cycle->log;
438 #endif 439 #endif
439 440
440 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, log, 0,
441 "epoll: fd:%d ev:%04X d:" PTR_FMT,
442 c->fd, event_list[i].events, event_list[i].data);
443
444 if (c->read->instance != instance) { 441 if (c->read->instance != instance) {
445 442
446 /* 443 /*
447 * the stale event from a file descriptor 444 * the stale event from a file descriptor
448 * that was just closed in this iteration 445 * that was just closed in this iteration
450 447
451 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0, 448 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0,
452 "epoll: stale event " PTR_FMT, c); 449 "epoll: stale event " PTR_FMT, c);
453 continue; 450 continue;
454 } 451 }
452
453 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, log, 0,
454 "epoll: fd:%d ev:%04X d:" PTR_FMT,
455 c->fd, event_list[i].events, event_list[i].data);
455 456
456 if (event_list[i].events & (EPOLLERR|EPOLLHUP)) { 457 if (event_list[i].events & (EPOLLERR|EPOLLHUP)) {
457 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, log, 0, 458 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, log, 0,
458 "epoll_wait() error on fd:%d ev:%04X", 459 "epoll_wait() error on fd:%d ev:%04X",
459 c->fd, event_list[i].events); 460 c->fd, event_list[i].events);