summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-07-13 20:24:56 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-07-13 20:24:56 +0000
commit846c27b2acc5f6bf942bab0d8c3b5e653b9513b4 (patch)
tree5f90e0cb78f93c9fc39a6115783fe43b4d010051
parenta14f89c0683452d573131795e24be2f2fe7580f9 (diff)
downloadnginx-846c27b2acc5f6bf942bab0d8c3b5e653b9513b4.tar.gz
nginx-846c27b2acc5f6bf942bab0d8c3b5e653b9513b4.tar.bz2
nginx-0.0.7-2004-07-14-00:24:56 import
Diffstat (limited to '')
-rw-r--r--src/event/modules/ngx_rtsig_module.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/event/modules/ngx_rtsig_module.c b/src/event/modules/ngx_rtsig_module.c
index e6b16fe00..c78cb8ffe 100644
--- a/src/event/modules/ngx_rtsig_module.c
+++ b/src/event/modules/ngx_rtsig_module.c
@@ -643,7 +643,11 @@ static ngx_int_t ngx_rtsig_process_overflow(ngx_cycle_t *cycle)
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 @@ static ngx_int_t ngx_rtsig_process_overflow(ngx_cycle_t *cycle)
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) {