aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2013-06-04 11:27:36 +0400
committerVladimir Homutov <vl@nginx.com>2013-06-04 11:27:36 +0400
commit26489b16e5abc76eb1b72e37651d01a1e1a657cb (patch)
tree4504ca380ab2f637e3ea8d77c7ebb1041de3cbf2 /src/core/nginx.c
parent9db2eddd8ad9da27a68e4551fbb78ccd79470b6c (diff)
downloadnginx-26489b16e5abc76eb1b72e37651d01a1e1a657cb.tar.gz
nginx-26489b16e5abc76eb1b72e37651d01a1e1a657cb.zip
Core: fixed handling of "stderr" in error_log.
If "stderr" was specified in one of the "error_log" directives, stderr is not redirected to the first error_log on startup, configuration reload, and reopening log files.
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 94df9bf74..796717ab9 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -387,7 +387,7 @@ main(int argc, char *const *argv)
return 1;
}
- if (cycle->log->file->fd != ngx_stderr) {
+ if (!cycle->log_use_stderr && cycle->log->file->fd != ngx_stderr) {
if (ngx_set_stderr(cycle->log->file->fd) == NGX_FILE_ERROR) {
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,