diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-03-31 17:52:01 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-31 17:52:01 +0400 |
commit | 24c2787163e79a9d58e855109c15284a4e659483 (patch) | |
tree | cc48efc06765f3932f96eabc2f2f1f9896c7bb56 /src/core/ngx_log.c | |
parent | fadc7a7e810874b95bb934aa107bfe0a795347d3 (diff) |
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.
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |