From d43bee8ee939992404d59ae0fec248ce46abecb0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 20 Nov 2004 19:52:20 +0000 Subject: nginx-0.1.8-RELEASE import *) Bugfix: in the ngx_http_autoindex_module if the long file names were in the listing. *) Feature: the "^~" modifier in the location directive. *) Feature: the proxy_max_temp_file_size directive. --- src/core/ngx_log.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/ngx_log.c') diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 521ba7aa3..b7198cd7f 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -155,8 +155,15 @@ static void ngx_log_write(ngx_log_t *log, u_char *errstr, size_t len) errstr[len++] = CR; errstr[len++] = LF; + WriteFile(log->file->fd, errstr, len, &written, NULL); +#if 0 + if (WriteFile(log->file->fd, errstr, len, &written, NULL) == 0) { + ngx_message_box("nginx", MB_OK, ngx_errno, "WriteFile() failed"); + } +#endif + #else if (len == NGX_MAX_ERROR_STR) { @@ -164,6 +171,7 @@ static void ngx_log_write(ngx_log_t *log, u_char *errstr, size_t len) } errstr[len++] = LF; + write(log->file->fd, errstr, len); #endif -- cgit