avoid segfault if poll is used and endless loop if select is used

This commit is contained in:
Igor Sysoev 2007-10-16 14:12:52 +00:00
parent 336943dd7e
commit dde2abde39

View File

@ -1054,7 +1054,7 @@ ngx_channel_handler(ngx_event_t *ev)
if (n == NGX_ERROR) {
ngx_free_connection(c);
ngx_close_connection(c);
fd = c->fd;
c->fd = (ngx_socket_t) -1;