comparison src/core/ngx_shmtx.c @ 284:3dbecd747fbb NGINX_0_5_12

nginx 0.5.12 *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc и ppc; bug appeared in 0.5.8. *) Bugfix: a segmentation fault might occur in worker process if the temporarily files were used while working with FastCGI server; bug appeared in 0.5.8. *) Bugfix: a segmentation fault might occur in worker process if the $fastcgi_script_name variable was logged. *) Bugfix: ngx_http_perl_module could not be built on Solaris.
author Igor Sysoev <http://sysoev.ru>
date Mon, 12 Feb 2007 00:00:00 +0300
parents 6ae1357b7b7c
children d4da38525468
comparison
equal deleted inserted replaced
283:48810289fcb1 284:3dbecd747fbb
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;