DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17206>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17206 Filehandles of logs not closed before exec of cgi scripts [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] Status|NEW |RESOLVED Priority|Other |High Resolution| |WORKSFORME ------- Additional Comments From [EMAIL PROTECTED] 2003-02-21 12:02 ------- Apache httpd fails to close access and error logs when it forks and execs cgi scripts. From our preliminary understanding of the code the fix is to call apr_file_inherit_unset() in place of apr_file_inherit_set() in both server/log.c and loggers/mod_log_config.c. The bug first appeared going from 2.0.39 to 2.0.40 because a typo in the definition of the APR_INHERIT flag had reversed the effect of apr_file_inherit_set(). For this please see cvs diff of /apr/include/arch/unix/Attic/inherit.h between 1.10 and 1.11. The attached patch forces cleanup of logfiles on fork/exec of cgi's. All calls of *_inherit_set() and *_inherit_unset() should be validated for correct behavior in their respective contexts. Credit for digging through the sources and finding the fix goes Bjoern Zeeb <[EMAIL PROTECTED]>. In case of questions we have more detailed information available. Please email. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
