You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2007/08/28 08:17:25 UTC
svn commit: r570321 - /httpd/httpd/branches/2.0.x/server/log.c
Author: wrowe
Date: Mon Aug 27 23:17:24 2007
New Revision: 570321
URL: http://svn.apache.org/viewvc?rev=570321&view=rev
Log:
Finish commit r570307, with some play-by-play commentary to
match trunk.
Modified:
httpd/httpd/branches/2.0.x/server/log.c
Modified: httpd/httpd/branches/2.0.x/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/server/log.c?rev=570321&r1=570320&r2=570321&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/server/log.c (original)
+++ httpd/httpd/branches/2.0.x/server/log.c Mon Aug 27 23:17:24 2007
@@ -217,7 +217,7 @@
}
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 @@
"%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 @@
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;