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 41367] - Logging to a pipe causes hanging children when doing a graceful restart
Date Mon, 15 Jan 2007 16:55:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41367





------- Additional Comments From trawick@apache.org  2007-01-15 08:55 -------
Regarding this comment:

+    /* Close the read end in the parent.  This will allow us to receive
+     * EPIPE on write() calls to this pipe when the child process goes away
+     * for any reason.
+     */

It is my understanding that both ends of the pipe have to be held open in the
parent so that when the piped logger crashes or otherwise exits, the parent is
able to restart a new logger process using the same handles, which is what
allows child processes serving requests to start using the new piped logger process.

A fix for the hang over graceful restart was put in later releases some time ago:

http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/server/log.c?r1=202154&r2=202161


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message