Mercurial > hg > nginx
diff src/core/nginx.c @ 5240:d8af1005e886
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.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 04 Jun 2013 11:27:36 +0400 |
parents | f941cf265cc5 |
children | e088695737c3 |
line wrap: on
line diff
--- a/src/core/nginx.c Mon Jun 03 16:54:28 2013 +0400 +++ b/src/core/nginx.c Tue Jun 04 11:27:36 2013 +0400 @@ -387,7 +387,7 @@ 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,