From: Ryan Bloom Date: Sun, 31 Dec 2000 23:41:07 +0000 (+0000) Subject: We have a pool in this function, and log_error_core needs a pool in order X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=949748f5a9316e44c3d42084b53b96f337071755;p=apache We have a pool in this function, and log_error_core needs a pool in order to open stderr successfully. By using ap_log_perror, we can pass a valid pool down to log_error_core git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87561 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index df4196ee2c..bd167872cc 100644 --- a/server/log.c +++ b/server/log.c @@ -346,7 +346,7 @@ static void log_error_core(const char *file, int line, int level, if (((level & APLOG_LEVELMASK) != APLOG_NOTICE) && ((level & APLOG_LEVELMASK) > DEFAULT_LOGLEVEL)) return; - apr_open_stderr(&logf, NULL); + apr_open_stderr(&logf, pool); } else if (s->error_log) { /* @@ -526,7 +526,7 @@ void ap_log_pid(apr_pool_t *p, const char *fname) * that may screw up scripts written to do something * based on the last modification time of the pid file. */ - ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, 0, NULL, + ap_log_perror(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, 0, p, apr_psprintf(p, "pid file %s overwritten -- Unclean shutdown of previous Apache run?", fname)