# HG changeset patch # User Igor Sysoev # Date 1297411355 0 # Node ID cf80c0b0109a9ab42b9003a26b202f20a4107b56 # Parent 39ad979cd31e67f1703fa080fcd4a13ae52142a8 set current atime while setting mtime patch by Andrei Nigmatulin diff -r 39ad979cd31e -r cf80c0b0109a src/os/unix/ngx_files.c --- a/src/os/unix/ngx_files.c Tue Feb 01 16:18:55 2011 +0000 +++ b/src/os/unix/ngx_files.c Fri Feb 11 08:02:35 2011 +0000 @@ -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;