Mercurial > hg > nginx-quic
comparison src/core/ngx_cycle.c @ 571:458b6c3fea65 release-0.3.7
nginx-0.3.7-RELEASE import
*) Feature: the "access_log" supports the "buffer=" parameter.
*) Bugfix: nginx could not be built on platforms different from i386,
amd64, sparc, and ppc; the bug had appeared in 0.3.2.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Oct 2005 15:46:13 +0000 |
parents | 9c2f3ed7a247 |
children | 4d9ea73a627a |
comparison
equal
deleted
inserted
replaced
570:2cdf120d8970 | 571:458b6c3fea65 |
---|---|
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", |