comparison src/http/modules/ngx_http_static_module.c @ 234:c16038b14e68 NGINX_0_4_2

nginx 0.4.2 *) Bugfix: the O_NOATIME flag support on Linux was canceled; bug appeared in 0.4.1.
author Igor Sysoev <http://sysoev.ru>
date Thu, 14 Sep 2006 00:00:00 +0400
parents d8f5c91a5c07
children acd2ec3541cb
comparison
equal deleted inserted replaced
233:56741fe3ea3b 234:c16038b14e68
123 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); 123 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t));
124 if (cln == NULL) { 124 if (cln == NULL) {
125 return NGX_HTTP_INTERNAL_SERVER_ERROR; 125 return NGX_HTTP_INTERNAL_SERVER_ERROR;
126 } 126 }
127 127
128 fd = ngx_open_file(path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME, 128 fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN);
129 NGX_FILE_OPEN);
130 129
131 if (fd == NGX_INVALID_FILE) { 130 if (fd == NGX_INVALID_FILE) {
132 err = ngx_errno; 131 err = ngx_errno;
133 132
134 if (err == NGX_ENOENT 133 if (err == NGX_ENOENT