comparison 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
comparison
equal deleted inserted replaced
1099:04a8b485447d 1100:01884449985f
33 } 33 }
34 34
35 ngx_shmtx_destory(mtx); 35 ngx_shmtx_destory(mtx);
36 } 36 }
37 37
38 mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN); 38 mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
39 NGX_FILE_DEFAULT_ACCESS);
39 40
40 if (mtx->fd == NGX_INVALID_FILE) { 41 if (mtx->fd == NGX_INVALID_FILE) {
41 ngx_log_error(NGX_LOG_EMERG, ngx_cycle->log, ngx_errno, 42 ngx_log_error(NGX_LOG_EMERG, ngx_cycle->log, ngx_errno,
42 ngx_open_file_n " \"%s\" failed", name); 43 ngx_open_file_n " \"%s\" failed", name);
43 return NGX_ERROR; 44 return NGX_ERROR;