From 29f4e0d272f23e43092a19b4e86b59ae6c7f61a2 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Tue, 28 Aug 2007 06:17:24 +0000 Subject: [PATCH] Finish commit r570307, with some play-by-play commentary to match trunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@570321 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/log.c b/server/log.c index a06eda7c140..68de15916e4 100644 --- a/server/log.c +++ b/server/log.c @@ -217,7 +217,7 @@ AP_DECLARE(apr_status_t) ap_replace_stderr_log(apr_pool_t *p, } if (rc != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rc, NULL, - "unable to replace stderr with error_log"); + "unable to replace stderr with error log file"); } return rc; } @@ -229,6 +229,11 @@ static void log_child_errfn(apr_pool_t *pool, apr_status_t err, "%s", description); } +/* Create a child process running PROGNAME with a pipe connected to + * the childs stdin. The write-end of the pipe will be placed in + * *FPIN on successful return. If dummy_stderr is non-zero, the + * stderr for the child will be the same as the stdout of the parent. + * Otherwise the child will inherit the stderr from the parent. */ static int log_child(apr_pool_t *p, const char *progname, apr_file_t **fpin, int dummy_stderr) { @@ -276,6 +281,8 @@ static int log_child(apr_pool_t *p, const char *progname, return rc; } +/* Open the error log for the given server_rec. If IS_MAIN is + * non-zero, s is the main server. */ static int open_error_log(server_rec *s, int is_main, apr_pool_t *p) { const char *fname; -- 2.47.2