Mercurial > hg > nginx
diff src/core/ngx_cycle.c @ 2629:367b29612a00
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.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 31 Mar 2009 13:52:01 +0000 |
parents | 64a10d6b97bd |
children | 9e0ae986b587 |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c Mon Mar 30 14:51:51 2009 +0000 +++ b/src/core/ngx_cycle.c Tue Mar 31 13:52:01 2009 +0000 @@ -360,7 +360,7 @@ } file[i].fd = ngx_open_file(file[i].name.data, - NGX_FILE_RDWR|NGX_FILE_APPEND, + NGX_FILE_APPEND, NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); @@ -1065,7 +1065,7 @@ file[i].pos = file[i].buffer; } - fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR|NGX_FILE_APPEND, + fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND, NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,