disable pair event on POLLREMOVE

This commit is contained in:
Igor Sysoev 2007-08-29 07:18:54 +00:00
parent fe4494bfb4
commit fc0be99221

View file

@ -255,6 +255,12 @@ ngx_devpoll_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
ev->active = 0; ev->active = 0;
if (flags & NGX_CLOSE_EVENT) { if (flags & NGX_CLOSE_EVENT) {
e = (event == POLLIN) ? c->write : c->read;
if (e) {
e->active = 0;
}
return NGX_OK; return NGX_OK;
} }