]> git.kaiwu.me - nginx.git/commit
Fixed possible use of old cached times if runtime went backwards.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 3 Aug 2012 09:10:39 +0000 (09:10 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 3 Aug 2012 09:10:39 +0000 (09:10 +0000)
commit25197b32291a35b623077c7f413003081038f4a8
treeb98b01e7f9c7fdb8ce6fb658d00b3802e28a9d48
parentd053bacb9cbeda00b8e7c6b982258ce7b025b2bd
Fixed possible use of old cached times if runtime went backwards.

If ngx_time_sigsafe_update() updated only ngx_cached_err_log_time, and
then clock was adjusted backwards, the cached_time[slot].sec might
accidentally match current seconds on next ngx_time_update() call,
resulting in various cached times not being updated.

Fix is to clear the cached_time[slot].sec to explicitly mark cached times
are stale and need updating.
src/core/ngx_times.c