You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2001/01/01 00:41:08 UTC
cvs commit: httpd-2.0/server log.c
rbb 00/12/31 15:41:07
Modified: server log.c
Log:
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
Revision Changes Path
1.77 +2 -2 httpd-2.0/server/log.c
Index: log.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/log.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- log.c 2000/12/31 19:19:07 1.76
+++ log.c 2000/12/31 23:41:07 1.77
@@ -346,7 +346,7 @@
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 @@
* 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)