]> git.kaiwu.me - nginx.git/commitdiff
fix segfault when event port returns POLLERR without POLLIN or POLLOUT
authorIgor Sysoev <igor@sysoev.ru>
Wed, 11 Jul 2007 10:45:55 +0000 (10:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 11 Jul 2007 10:45:55 +0000 (10:45 +0000)
src/event/modules/ngx_eventport_module.c

index bd046edbb2ddfa3a1c30f4fa98b706093d1bac08..0abb2eec1ef804874c24215f61a95060025c8fd6 100644 (file)
@@ -514,6 +514,10 @@ ngx_eventport_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
 
                 } else {
                     rev->handler(rev);
+
+                    if (ev->closed) {
+                        continue;
+                    }
                 }
 
                 if (rev->accept) {