aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-09-01 05:15:56 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-09-01 05:15:56 +0000
commitdc1e3060eb9244a0d325f1dae7fe88757066b90d (patch)
tree6377e78c0c5077229d900a51581ab38bd8533275 /src/http/modules/ngx_http_static_module.c
parentacdb80aed45272782ad664eeb9687f1a14b844d5 (diff)
downloadnginx-dc1e3060eb9244a0d325f1dae7fe88757066b90d.tar.gz
nginx-dc1e3060eb9244a0d325f1dae7fe88757066b90d.zip
Linux O_NOATIME support
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c3
1 files changed, 2 insertions, 1 deletions
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;