From: Ryan Bloom Date: Mon, 1 Jan 2001 00:13:41 +0000 (+0000) Subject: When we are starting the server, we have a pool that can be used to open X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=703d13f7c5ac6cddd0119b4663d69fd7c352e82b;p=apache When we are starting the server, we have a pool that can be used to open the error log. Rather than try to log a regular error, log an error with the pool that we have, so that we can open stderr successfully. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87562 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/config.c b/server/config.c index 2e3eba3926..bf094de25b 100644 --- a/server/config.c +++ b/server/config.c @@ -1462,11 +1462,11 @@ AP_DECLARE(void)ap_process_config_tree(server_rec *s, ap_directive_t *conftree, errmsg = ap_walk_config(conftree, &parms, s->lookup_defaults); if (errmsg) { - ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, + ap_log_perror(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, p, "Syntax error on line %d of %s:", parms.err_directive->line_num, parms.err_directive->filename); - ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, + ap_log_perror(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, p, "%s", errmsg); exit(1); }