Mercurial > hg > nginx
diff src/core/ngx_cycle.c @ 1100:01884449985f
fix building on platforms with non-supported atomic operations
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 11 Feb 2007 07:49:12 +0000 |
parents | c4f666fc3a7e |
children | efb7d84db340 |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -901,7 +901,8 @@ ngx_test_lockfile(u_char *file, ngx_log_ #if !(NGX_HAVE_ATOMIC_OPS) ngx_fd_t fd; - fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN); + fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN, + NGX_FILE_DEFAULT_ACCESS); if (fd == NGX_INVALID_FILE) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,