]> granicus.if.org Git - apache/commit
When starting a new piped error logger for the main server, ensure
authorJoe Orton <jorton@apache.org>
Tue, 3 Oct 2006 11:40:30 +0000 (11:40 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 3 Oct 2006 11:40:30 +0000 (11:40 +0000)
commitd91484f6fc43f7afab176d8a573c4ca3add70a8b
tree5a3f1bc4cba73667dcf795108b924f2b5772a655
parent92067e547e42e610b9a8556e82b2f0f56e7edad5
When starting a new piped error logger for the main server, ensure
that the new child's stderr is not a pipe to an old piped logger:

* server/log.c (log_child): Add "dummy_stderr" parameter; if set,
duplicate stdout as the stderr for the child.
(open_error_log): Add "is_main" parameter; use dummy stderr for logger
for main server only.
(ap_open_logs, ap_open_piped_log): Adjust for new open_error_log()/
log_child() parameters.

PR: 40651
Submitted by: jorton, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452431 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/log.c