comparison src/os/unix/ngx_files.c @ 614:bb20316269e4 NGINX_0_9_5

nginx 0.9.5 *) Change: now nginx uses a default listen backlog value -1 on Linux. Thanks to Andrei Nigmatulin. *) Feature: the "utf8" parameter of "geoip_country" and "geoip_city" directives. Thanks to Denis F. Latypoff. *) Bugfix: in a default "proxy_redirect" directive if "proxy_pass" directive has no URI part. Thanks to Maxim Dounin. *) Bugfix: an "error_page" directive did not work with nonstandard error codes; the bug had appeared in 0.8.53. Thanks to Maxim Dounin.
author Igor Sysoev <http://sysoev.ru>
date Mon, 21 Feb 2011 00:00:00 +0300
parents c456a023113c
children 615b5ea36fc0
comparison
equal deleted inserted replaced
613:eaf85af608b8 614:bb20316269e4
243 ngx_int_t 243 ngx_int_t
244 ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s) 244 ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s)
245 { 245 {
246 struct timeval tv[2]; 246 struct timeval tv[2];
247 247
248 tv[0].tv_sec = s; 248 tv[0].tv_sec = ngx_time();
249 tv[0].tv_usec = 0; 249 tv[0].tv_usec = 0;
250 tv[1].tv_sec = s; 250 tv[1].tv_sec = s;
251 tv[1].tv_usec = 0; 251 tv[1].tv_usec = 0;
252 252
253 if (utimes((char *) name, tv) != -1) { 253 if (utimes((char *) name, tv) != -1) {