>Number: 1725
>Category: general
>Synopsis: When ErrorLog going to a pipe, only summary line makes it to
>handler
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Fri Jan 23 13:30:00 PST 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.5
>Environment:
Red Hat Linux 5.0, 2.0.33 Kernel
>Description:
When Apache creates an errorlog file, STDERR from any CGI's are directed to
the Apache ErrorLog directive file. However, when using a pipe as the ErrorLog
only the "Date and Summary" line gets passed to the program. The STDERR from
the CGI goes nowhere (or at least never gets seen by the error handler)
>How-To-Repeat:
#!/usr/bin/perl
open MYLOG, ">> /tmp/mylog";
while (<>)
{
print MYLOG;
}
And then create a CGI with syntax errors and you'll never see them there. :)
>Fix:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]