diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2007-09-28 19:24:26 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2007-09-28 19:24:26 +0200 |
commit | 1823a1d3f1c0e54406b9e32a71cfa1d01a674b0c (patch) | |
tree | 83c213a5f67312d65ceed23eda91b55825d7b105 /server/log.c | |
parent | * Revert r561352 as this breaks authentication completely. (diff) | |
download | apache2-1823a1d3f1c0e54406b9e32a71cfa1d01a674b0c.tar.xz apache2-1823a1d3f1c0e54406b9e32a71cfa1d01a674b0c.zip |
Logging fixes, round two. Authored and Reviewed by both rplume and wrowe
within the same 10 minutes, this is the obvious fix to prevent any lingering
write handles from hanging around in unexpected ways.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@580431 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/log.c')
-rw-r--r-- | server/log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/log.c b/server/log.c index 14b4fdc21f..df75d22d0f 100644 --- a/server/log.c +++ b/server/log.c @@ -421,6 +421,12 @@ int ap_open_logs(apr_pool_t *pconf, apr_pool_t *p /* plog */, apr_pool_destroy(stderr_pool); stderr_pool = stderr_p; replace_stderr = 0; + + /* We are safer having only a single apr_file_t reference + * to the new main error logging stream + */ + apr_file_close(s_main->error_log); + s_main->error_log = stderr_log; } } /* note that stderr may still need to be replaced with something |