From 24c2787163e79a9d58e855109c15284a4e659483 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 31 Mar 2009 13:52:01 +0000 Subject: Win32 appends synchronized if only FILE_APPEND_DATA and SYNCHRONIZE are set without any other flags. On the other hand, Unix requires at least the write flag to be set together with O_APPEND. --- src/core/ngx_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_log.c') diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 83cbbee0d..f1718f185 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -201,7 +201,7 @@ ngx_log_init(void) ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE); ngx_stderr.fd = ngx_open_file((u_char *) NGX_ERROR_LOG_PATH, - NGX_FILE_RDWR|NGX_FILE_APPEND, + NGX_FILE_APPEND, NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); -- cgit v1.2.3