summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-02-11 07:49:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-02-11 07:49:12 +0000
commit8e750112f6917061e55d6cf6d55e75a9e6ebd811 (patch)
treef406e9ff40b0bed73db947a9925d76fa578d1252
parent915ef4f7c85df3e69d8e37116f09ed3a5ac55f66 (diff)
downloadnginx-8e750112f6917061e55d6cf6d55e75a9e6ebd811.tar.gz
nginx-8e750112f6917061e55d6cf6d55e75a9e6ebd811.tar.bz2
fix building on platforms with non-supported atomic operations
-rw-r--r--src/core/ngx_cycle.c3
-rw-r--r--src/core/ngx_shmtx.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index 7daebaac3..243febd0e 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -901,7 +901,8 @@ ngx_test_lockfile(u_char *file, ngx_log_t *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,
diff --git a/src/core/ngx_shmtx.c b/src/core/ngx_shmtx.c
index 0d3b09616..ead94e484 100644
--- a/src/core/ngx_shmtx.c
+++ b/src/core/ngx_shmtx.c
@@ -35,7 +35,8 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, void *addr, u_char *name)
ngx_shmtx_destory(mtx);
}
- mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN);
+ mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
+ NGX_FILE_DEFAULT_ACCESS);
if (mtx->fd == NGX_INVALID_FILE) {
ngx_log_error(NGX_LOG_EMERG, ngx_cycle->log, ngx_errno,