httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17206] - Filehandles of logs not closed before exec of cgi scripts
Date Fri, 21 Feb 2003 12:02:33 GMT
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

ck@cksoft.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzeeb@zabbadoz.net
             Status|NEW                         |RESOLVED
           Priority|Other                       |High
         Resolution|                            |WORKSFORME



------- Additional Comments From ck@cksoft.de  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 <bzeeb@zabbadoz.net>.

In case of questions we have more detailed information available.
Please email.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message