Commit e66fb251 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

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
parent 949748f5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }