aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-11-20 19:52:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-11-20 19:52:20 +0000
commitd43bee8ee939992404d59ae0fec248ce46abecb0 (patch)
tree6eb79a6902f147bedb8c85350cbdc68543115907 /src/core/ngx_log.c
parent13376e1538e2b29e436805c626f6837b34a482c5 (diff)
downloadnginx-d43bee8ee939992404d59ae0fec248ce46abecb0.tar.gz
nginx-d43bee8ee939992404d59ae0fec248ce46abecb0.zip
nginx-0.1.8-RELEASE importrelease-0.1.8
*) 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.
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r--src/core/ngx_log.c8
1 files changed, 8 insertions, 0 deletions
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