Mercurial > hg > nginx-vendor-1-0
comparison src/core/ngx_cycle.c @ 120:e85dca77c46a NGINX_0_3_7
nginx 0.3.7
*) Feature: the "access_log" supports the "buffer=" parameter.
*) Bugfix: nginx could not be built on platforms different from i386,
amd64, sparc и ppc; bug appeared in 0.3.2.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 27 Oct 2005 00:00:00 +0400 |
parents | 408f195b3482 |
children | df17fbafec8f |
comparison
equal
deleted
inserted
replaced
119:85abc07cafba | 120:e85dca77c46a |
---|---|
722 | 722 |
723 if (file[i].name.data == NULL) { | 723 if (file[i].name.data == NULL) { |
724 continue; | 724 continue; |
725 } | 725 } |
726 | 726 |
727 if (file[i].buffer && file[i].pos - file[i].buffer != 0) { | |
728 ngx_write_fd(file[i].fd, file[i].buffer, | |
729 file[i].pos - file[i].buffer); | |
730 file[i].pos = file[i].buffer; | |
731 } | |
732 | |
727 fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, | 733 fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, |
728 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND); | 734 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND); |
729 | 735 |
730 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, | 736 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
731 "reopen file \"%s\", old:%d new:%d", | 737 "reopen file \"%s\", old:%d new:%d", |