| commit | 4d6db4a7ab7c521f60930548e85c450d43869d0c | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Fri Feb 11 08:02:35 2011 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Fri Feb 11 08:02:35 2011 +0000 |
| tree | 9e4b997d3a3ba7d36e064b0ee27cfcd6e54571b3 | |
| parent | 64d5f9ba268f48170ac6a0d188d934de442072fe [diff] |
set current atime while setting mtime patch by Andrei Nigmatulin
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index c50e201..89ab8d6 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c
@@ -245,7 +245,7 @@ { struct timeval tv[2]; - tv[0].tv_sec = s; + tv[0].tv_sec = ngx_time(); tv[0].tv_usec = 0; tv[1].tv_sec = s; tv[1].tv_usec = 0;