aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.c
diff options
context:
space:
mode:
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