comparison src/core/ngx_open_file_cache.c @ 568:566e105a89f1 NGINX_0_8_36

nginx 0.8.36 *) Bugfix: the ngx_http_dav_module handled incorrectly the DELETE, COPY, and MOVE methods for symlinks. *) Bugfix: values of the $query_string, $arg_..., etc. variables cached in main request were used by the SSI module in subrequests. *) Bugfix: a variable value was repeatedly encoded after each an "echo" SSI-command output; the bug had appeared in 0.6.14. *) Bugfix: a worker process hung if a FIFO file was requested. Thanks to Vicente Aguilar and Maxim Dounin. *) Bugfix: OpenSSL-1.0.0 compatibility on 64-bit Linux. Thanks to Maxim Dounin. *) Bugfix: nginx could not be built --without-http-cache; the bug had appeared in 0.8.35.
author Igor Sysoev <http://sysoev.ru>
date Thu, 22 Apr 2010 00:00:00 +0400
parents f7ec98e3caeb
children 8dc007eddbcf
comparison
equal deleted inserted replaced
567:a49f5d0aff01 568:566e105a89f1
488 goto done; 488 goto done;
489 } 489 }
490 } 490 }
491 491
492 if (!of->log) { 492 if (!of->log) {
493 fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); 493
494 /*
495 * Use non-blocking open() not to hang on FIFO files, etc.
496 * This flag has no effect on a regular files.
497 */
498
499 fd = ngx_open_file(name, NGX_FILE_RDONLY|NGX_FILE_NONBLOCK,
500 NGX_FILE_OPEN, 0);
494 501
495 } else { 502 } else {
496 fd = ngx_open_file(name, NGX_FILE_APPEND, NGX_FILE_CREATE_OR_OPEN, 503 fd = ngx_open_file(name, NGX_FILE_APPEND, NGX_FILE_CREATE_OR_OPEN,
497 NGX_FILE_DEFAULT_ACCESS); 504 NGX_FILE_DEFAULT_ACCESS);
498 } 505 }