comparison src/http/modules/ngx_http_index_module.c @ 691:fd8a64f5dd3b

backout O_NOATIME support, it requires CAP_FOWNER capability
author Igor Sysoev <igor@sysoev.ru>
date Thu, 14 Sep 2006 15:05:48 +0000
parents 364195c9ee00
children c3ebeee31026
comparison
equal deleted inserted replaced
690:bd2a647882e4 691:fd8a64f5dd3b
237 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); 237 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t));
238 if (cln == NULL) { 238 if (cln == NULL) {
239 return NGX_HTTP_INTERNAL_SERVER_ERROR; 239 return NGX_HTTP_INTERNAL_SERVER_ERROR;
240 } 240 }
241 241
242 fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME, 242 fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN);
243 NGX_FILE_OPEN);
244 243
245 if (fd == (ngx_fd_t) NGX_AGAIN) { 244 if (fd == (ngx_fd_t) NGX_AGAIN) {
246 ctx->current = i; 245 ctx->current = i;
247 return NGX_AGAIN; 246 return NGX_AGAIN;
248 } 247 }