Mercurial > hg > nginx
comparison src/http/modules/ngx_http_static_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 |
---|---|
123 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); | 123 cln = ngx_pool_cleanup_add(r->pool, sizeof(ngx_pool_cleanup_file_t)); |
124 if (cln == NULL) { | 124 if (cln == NULL) { |
125 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 125 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
126 } | 126 } |
127 | 127 |
128 fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN); | 128 fd = ngx_open_file(path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME, |
129 NGX_FILE_OPEN); | |
129 | 130 |
130 if (fd == NGX_INVALID_FILE) { | 131 if (fd == NGX_INVALID_FILE) { |
131 err = ngx_errno; | 132 err = ngx_errno; |
132 | 133 |
133 if (err == NGX_ENOENT | 134 if (err == NGX_ENOENT |