diff options
author | Jeff Trawick <trawick@apache.org> | 2001-01-04 19:22:50 +0100 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-01-04 19:22:50 +0100 |
commit | a65b522fb9df7f269b7d3255cd8d100312feb9ea (patch) | |
tree | 74e16fa9f14ced211ac3f3b98e24ccb426d4d0fb /server/main.c | |
parent | fix spelling (diff) | |
download | apache2-a65b522fb9df7f269b7d3255cd8d100312feb9ea.tar.xz apache2-a65b522fb9df7f269b7d3255cd8d100312feb9ea.zip |
Set up stderr logging explictly early in initialization so that a pool is
available for creating the APR representation of stderr.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87583 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | server/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/main.c b/server/main.c index 388face9ab..25eca86492 100644 --- a/server/main.c +++ b/server/main.c @@ -214,6 +214,9 @@ static process_rec *create_process(int argc, const char * const *argv) stat = apr_create_pool(&cntx, NULL); if (stat != APR_SUCCESS) { + /* XXX From the time that we took away the NULL pool->malloc mapping + * we have been unable to log here without segfaulting. + */ ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, NULL, "apr_create_pool() failed to create " "initial context"); @@ -221,6 +224,8 @@ static process_rec *create_process(int argc, const char * const *argv) exit(1); } + ap_open_stderr_log(cntx); + process = apr_palloc(cntx, sizeof(process_rec)); process->pool = cntx; |