Mercurial > hg > nginx
comparison src/event/modules/ngx_rtsig_module.c @ 390:1471c6fb108a
nginx-0.0.7-2004-07-14-00:24:56 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 13 Jul 2004 20:24:56 +0000 |
parents | 537de4dca8ca |
children | b670db10cbbd |
comparison
equal
deleted
inserted
replaced
389:537de4dca8ca | 390:1471c6fb108a |
---|---|
641 for (i = 0; i < n; i++) { | 641 for (i = 0; i < n; i++) { |
642 c = &cycle->connections[overflow_list[i].fd]; | 642 c = &cycle->connections[overflow_list[i].fd]; |
643 | 643 |
644 rev = c->read; | 644 rev = c->read; |
645 | 645 |
646 if (overflow_list[i].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) { | 646 if (rev->active |
647 && rev->event_handler | |
648 && (overflow_list[i].revents | |
649 & (POLLIN|POLLERR|POLLHUP|POLLNVAL))) | |
650 { | |
647 tested++; | 651 tested++; |
648 | 652 |
649 if (ngx_threaded) { | 653 if (ngx_threaded) { |
650 rev->posted_ready = 1; | 654 rev->posted_ready = 1; |
651 ngx_post_event(rev); | 655 ngx_post_event(rev); |
656 } | 660 } |
657 } | 661 } |
658 | 662 |
659 wev = c->write; | 663 wev = c->write; |
660 | 664 |
661 if (overflow_list[i].revents & (POLLOUT|POLLERR|POLLHUP|POLLNVAL)) { | 665 if (wev->active |
666 && wev->event_handler | |
667 && (overflow_list[i].revents | |
668 & (POLLOUT|POLLERR|POLLHUP|POLLNVAL))) | |
669 { | |
662 tested++; | 670 tested++; |
663 | 671 |
664 if (ngx_threaded) { | 672 if (ngx_threaded) { |
665 wev->posted_ready = 1; | 673 wev->posted_ready = 1; |
666 ngx_post_event(wev); | 674 ngx_post_event(wev); |