comparison src/event/modules/ngx_epoll_module.c @ 652:d9136cb50cd3 NGINX_1_1_10

nginx 1.1.10 *) Bugfix: a segmentation fault occured in a worker process if AIO was used on Linux; the bug had appeared in 1.1.9.
author Igor Sysoev <http://sysoev.ru>
date Wed, 30 Nov 2011 00:00:00 +0400
parents 4d05413aebad
children d0f7a625f27c
comparison
equal deleted inserted replaced
651:583a3cd2773c 652:d9136cb50cd3
679 } 679 }
680 } 680 }
681 681
682 wev = c->write; 682 wev = c->write;
683 683
684 if (c->fd == -1 || wev->instance != instance) {
685
686 /*
687 * the stale event from a file descriptor
688 * that was just closed in this iteration
689 */
690
691 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
692 "epoll: stale event %p", c);
693 continue;
694 }
695
696 if ((revents & EPOLLOUT) && wev->active) { 684 if ((revents & EPOLLOUT) && wev->active) {
685
686 if (c->fd == -1 || wev->instance != instance) {
687
688 /*
689 * the stale event from a file descriptor
690 * that was just closed in this iteration
691 */
692
693 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
694 "epoll: stale event %p", c);
695 continue;
696 }
697 697
698 if (flags & NGX_POST_THREAD_EVENTS) { 698 if (flags & NGX_POST_THREAD_EVENTS) {
699 wev->posted_ready = 1; 699 wev->posted_ready = 1;
700 700
701 } else { 701 } else {