diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-03-31 13:52:01 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-31 13:52:01 +0000 |
commit | 24c2787163e79a9d58e855109c15284a4e659483 (patch) | |
tree | cc48efc06765f3932f96eabc2f2f1f9896c7bb56 /src/core/ngx_open_file_cache.c | |
parent | fadc7a7e810874b95bb934aa107bfe0a795347d3 (diff) | |
download | nginx-24c2787163e79a9d58e855109c15284a4e659483.tar.gz nginx-24c2787163e79a9d58e855109c15284a4e659483.zip |
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_open_file_cache.c')
-rw-r--r-- | src/core/ngx_open_file_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index 2f6581bda..cb7073675 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -466,8 +466,8 @@ ngx_open_and_stat_file(u_char *name, ngx_open_file_info_t *of, ngx_log_t *log) fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); } else { - fd = ngx_open_file(name, NGX_FILE_RDWR|NGX_FILE_APPEND, - NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); + fd = ngx_open_file(name, NGX_FILE_APPEND, NGX_FILE_CREATE_OR_OPEN, + NGX_FILE_DEFAULT_ACCESS); } if (fd == NGX_INVALID_FILE) { |