]> granicus.if.org Git - apache/commitdiff
When we are starting the server, we have a pool that can be used to open
authorRyan Bloom <rbb@apache.org>
Mon, 1 Jan 2001 00:13:41 +0000 (00:13 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 1 Jan 2001 00:13:41 +0000 (00:13 +0000)
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

server/config.c

index 2e3eba39268f5372db7f92a2ce07a92bde7aa2f2..bf094de25b0dddb3e45bccde245866747a863553 100644 (file)
@@ -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);
     }