Bug 60999 - pre_config hooks can't log reliably
Summary: pre_config hooks can't log reliably
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2017-04-17 23:22 UTC by Jacob Champion
Modified: 2017-04-17 23:22 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Champion 2017-04-17 23:22:01 UTC
Another placeholder for me... similar to bug 60964.

After the configtest has run and the child processes are spawning, the default log file points to stderr (fd 2), but that descriptor has been redirected to /dev/null for child processes. Any ap_log_* calls in a pre_config hook will go to the bit bucket, because we haven't come up with a new log destination yet.

This currently prevents my attempt at a graceful warning for users affected by bug 60947. Launching in one-process mode (-X) seems to work around the problem.