Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-31 17:52:01 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-03-31 17:52:01 +0400
commit24c2787163e79a9d58e855109c15284a4e659483 (patch)
treecc48efc06765f3932f96eabc2f2f1f9896c7bb56 /src/os/unix/ngx_files.h
parentfadc7a7e810874b95bb934aa107bfe0a795347d3 (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/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index dcd14c35f..982ab12b3 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -64,7 +64,7 @@ typedef struct {
#define NGX_FILE_CREATE_OR_OPEN O_CREAT
#define NGX_FILE_OPEN 0
#define NGX_FILE_TRUNCATE O_TRUNC
-#define NGX_FILE_APPEND O_APPEND
+#define NGX_FILE_APPEND O_WRONLY|O_APPEND
#define NGX_FILE_DEFAULT_ACCESS 0644
#define NGX_FILE_OWNER_ACCESS 0600