comparison src/os/unix/ngx_channel.c @ 14:8a529698ed55 NGINX_0_1_7

nginx 0.1.7 *) Bugfix: on FreeBSD the segmentation fault may occur if the size of the transferred file was changed; bug appeared in 0.1.5.
author Igor Sysoev <http://sysoev.ru>
date Fri, 12 Nov 2004 00:00:00 +0300
parents 46833bd150cb
children 6f8b0dc0f8dd
comparison
equal deleted inserted replaced
13:6bf8a3012a54 14:8a529698ed55
231 231
232 232
233 void ngx_close_channel(ngx_fd_t *fd, ngx_log_t *log) 233 void ngx_close_channel(ngx_fd_t *fd, ngx_log_t *log)
234 { 234 {
235 if (close(fd[0]) == -1) { 235 if (close(fd[0]) == -1) {
236 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, "close() failed"); 236 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, "close() channel failed");
237 } 237 }
238 238
239 if (close(fd[1]) == -1) { 239 if (close(fd[1]) == -1) {
240 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, "close() failed"); 240 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, "close() channel failed");
241 } 241 }
242 } 242 }