]> git.kaiwu.me - nginx.git/commitdiff
delete code that should be deleted in r1576
authorIgor Sysoev <igor@sysoev.ru>
Tue, 16 Oct 2007 17:51:47 +0000 (17:51 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 16 Oct 2007 17:51:47 +0000 (17:51 +0000)
src/os/unix/ngx_process_cycle.c

index f95d6e9a58b1697d43a8a795b7dbd7b0c145e564..7d7ef79e5fa135b8b1fa6510651768000a1ad3c7 100644 (file)
@@ -1053,17 +1053,7 @@ ngx_channel_handler(ngx_event_t *ev)
     ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n);
 
     if (n == NGX_ERROR) {
-
         ngx_close_connection(c);
-
-        fd = c->fd;
-        c->fd = (ngx_socket_t) -1;
-
-        if (close(fd) == -1) {
-            ngx_log_error(NGX_LOG_ALERT, ev->log, ngx_errno,
-                          "close() channel failed");
-        }
-
         return;
     }