From dc1e3060eb9244a0d325f1dae7fe88757066b90d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 1 Sep 2006 05:15:56 +0000 Subject: Linux O_NOATIME support --- src/http/modules/ngx_http_index_module.c | 3 ++- src/http/modules/ngx_http_static_module.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/http') diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index cd1c51ee5..b84a65e61 100644 --- 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_t *r) 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; diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c index f9df46eeb..414461099 100644 --- a/src/http/modules/ngx_http_static_module.c +++ b/src/http/modules/ngx_http_static_module.c @@ -125,7 +125,8 @@ ngx_http_static_handler(ngx_http_request_t *r) return NGX_HTTP_INTERNAL_SERVER_ERROR; } - fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); + fd = ngx_open_file(path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME, + NGX_FILE_OPEN); if (fd == NGX_INVALID_FILE) { err = ngx_errno; -- cgit