Mercurial > hg > nginx
changeset 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 |
files | src/event/modules/ngx_rtsig_module.c |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/modules/ngx_rtsig_module.c Tue Jul 13 17:59:12 2004 +0000 +++ b/src/event/modules/ngx_rtsig_module.c Tue Jul 13 20:24:56 2004 +0000 @@ -643,7 +643,11 @@ rev = c->read; - if (overflow_list[i].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) { + if (rev->active + && rev->event_handler + && (overflow_list[i].revents + & (POLLIN|POLLERR|POLLHUP|POLLNVAL))) + { tested++; if (ngx_threaded) { @@ -658,7 +662,11 @@ wev = c->write; - if (overflow_list[i].revents & (POLLOUT|POLLERR|POLLHUP|POLLNVAL)) { + if (wev->active + && wev->event_handler + && (overflow_list[i].revents + & (POLLOUT|POLLERR|POLLHUP|POLLNVAL))) + { tested++; if (ngx_threaded) {