diff src/core/ngx_shmtx.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 201d017ea470
children 0daede16d68b
line wrap: on
line diff
--- a/src/core/ngx_shmtx.c
+++ b/src/core/ngx_shmtx.c
@@ -35,7 +35,8 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, void 
         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,