Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -239,7 +239,8 @@ ngx_http_index_handler(ngx_http_request_ return NGX_HTTP_INTERNAL_SERVER_ERROR; } - fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); + fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME, + NGX_FILE_OPEN); if (fd == (ngx_fd_t) NGX_AGAIN) { ctx->current = i;