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 28816] New: - CGI programs will not detach unless STDERR is also closed
Date Thu, 06 May 2004 18:30:48 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=28816>.
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=28816

CGI programs will not detach unless STDERR is also closed

           Summary: CGI programs will not detach unless STDERR is also
                    closed
           Product: Apache httpd-2.0
           Version: 2.0.49
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rmiller@duskglow.com


I encountered this problem last night and don't have an explanation for it. 
 
We have a CGI program which is meant to send a response back to the user, 
close stdout, and then continue processing.  These processes can take many 
hours, and we wish the user to have immediate confirmation.  We also find it 
very useful to send the stderr output of these programs to the apache error 
log.  This worked perfectly under 1.3.24, and appears to no longer work under 
2.0.49. 
 
It appears that apache will no longer close the connection to the browser 
unless stderr is also closed by the detaching program.  This, of course, makes 
it impossible for us to send errors through the apache logging facility.  We 
were able to work around this by sending the errors elsewhere, but it's a very 
subtle change that proved very difficult to track down. 
 
Thanks. 
 
--Russell

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


Mime
View raw message