changeset 1575:08998303f3d6

avoid segfault if poll is used and endless loop if select is used
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Oct 2007 14:12:52 +0000
parents 6a60502db714
children 5cd655d5d2fa
files src/os/unix/ngx_process_cycle.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/unix/ngx_process_cycle.c	Tue Oct 16 12:17:11 2007 +0000
+++ b/src/os/unix/ngx_process_cycle.c	Tue Oct 16 14:12:52 2007 +0000
@@ -1054,7 +1054,7 @@
 
     if (n == NGX_ERROR) {
 
-        ngx_free_connection(c);
+        ngx_close_connection(c);
 
         fd = c->fd;
         c->fd = (ngx_socket_t) -1;