From 697d1aea0c7b1525beed2911f9f32426280df8f4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 27 Oct 2005 15:46:13 +0000 Subject: 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. --- src/core/ngx_cycle.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/ngx_cycle.c') diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 58679ed28..ab196112c 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -724,6 +724,12 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user) continue; } + if (file[i].buffer && file[i].pos - file[i].buffer != 0) { + ngx_write_fd(file[i].fd, file[i].buffer, + file[i].pos - file[i].buffer); + file[i].pos = file[i].buffer; + } + fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND); -- cgit