Bug 157952

Summary: httpd piped logging fd leak, graceful restart handling
Product: Red Hat Enterprise Linux 4 Reporter: Joe Orton <jorton>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-622 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 15:38:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 156322    

Description Joe Orton 2005-05-17 12:46:14 UTC
Two piped logging bugs filed against RHEL3 (bug 157832, bug 127981) also affect
httpd in RHEL4:

1. there is an fd leak when spawning piped loggers, which can eventually use up
all fds e.g. prevent new piped loggers from starting, etc.  (bug 157832)

2. the "read" end of the pipe created to a piped logger is not closed.  During a
graceful restart, after the httpd parent kills a piped logger helper, the pipe
is never closed since each child has both ends of the pipe open.  When a
lingering child writes log entries to the pipe, it will then hang once the pipe
buffer fills up, since nobody is reading from the other end.  (bug 127981)

Comment 5 Red Hat Bugzilla 2005-10-05 15:38:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-622.html