comparison src/os/unix/ngx_process_cycle.c @ 1577:8009c3ad39a9

delete code that should be deleted in r1576
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Oct 2007 17:51:47 +0000
parents 08998303f3d6
children 981de6e0735d
comparison
equal deleted inserted replaced
1576:5cd655d5d2fa 1577:8009c3ad39a9
1051 n = ngx_read_channel(c->fd, &ch, sizeof(ngx_channel_t), ev->log); 1051 n = ngx_read_channel(c->fd, &ch, sizeof(ngx_channel_t), ev->log);
1052 1052
1053 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n); 1053 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n);
1054 1054
1055 if (n == NGX_ERROR) { 1055 if (n == NGX_ERROR) {
1056
1057 ngx_close_connection(c); 1056 ngx_close_connection(c);
1058
1059 fd = c->fd;
1060 c->fd = (ngx_socket_t) -1;
1061
1062 if (close(fd) == -1) {
1063 ngx_log_error(NGX_LOG_ALERT, ev->log, ngx_errno,
1064 "close() channel failed");
1065 }
1066
1067 return; 1057 return;
1068 } 1058 }
1069 1059
1070 if (ngx_event_flags & NGX_USE_EVENTPORT_EVENT) { 1060 if (ngx_event_flags & NGX_USE_EVENTPORT_EVENT) {
1071 if (ngx_add_event(ev, NGX_READ_EVENT, 0) == NGX_ERROR) { 1061 if (ngx_add_event(ev, NGX_READ_EVENT, 0) == NGX_ERROR) {