]> git.kaiwu.me - nginx.git/commitdiff
nginx-0.0.7-2004-07-14-00:24:56 import
authorIgor Sysoev <igor@sysoev.ru>
Tue, 13 Jul 2004 20:24:56 +0000 (20:24 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 13 Jul 2004 20:24:56 +0000 (20:24 +0000)
src/event/modules/ngx_rtsig_module.c

index e6b16fe0088bddac162090c38412bff232955194..c78cb8ffee340000d5ec56ebc33acbf496f149aa 100644 (file)
@@ -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) {