comparison src/http/modules/ngx_http_index_module.c @ 685:364195c9ee00

Linux O_NOATIME support
author Igor Sysoev <igor@sysoev.ru>
date Fri, 01 Sep 2006 05:15:56 +0000
parents 7e24168b0853
children fd8a64f5dd3b
comparison
equal deleted inserted replaced
684:e3e0b20d8eb2 685:364195c9ee00
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_OPEN); 242 fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME,
243 NGX_FILE_OPEN);
243 244
244 if (fd == (ngx_fd_t) NGX_AGAIN) { 245 if (fd == (ngx_fd_t) NGX_AGAIN) {
245 ctx->current = i; 246 ctx->current = i;
246 return NGX_AGAIN; 247 return NGX_AGAIN;
247 } 248 }