Hi,
I load mod_perl into a customized Apache on Windows but when I send a
simple request (http://host:port/perl/testperl.pl - testperl.pl just
prints a simple message) Apache dies and throws the following message
in the error log
Failed to dup STDIN: Bad file descriptor.
I see that this is comin
I believe fd 0 and/or fd 1 are closed in Apache 2 which might be causing the
issue.
I had the similar kid of issue - i used following code to fix it
$fileno = fileno(STDIN);
if ( defined($fileno) and $fileno != 0)
{
$stdin = IO::Handle->new();
$st
sorry i meant mod_perl not Apache
On Wed, Nov 19, 2008 at 9:58 PM, Shibi NS <[EMAIL PROTECTED]> wrote:
> I believe fd 0 and/or fd 1 are closed in Apache 2 which might be causing
> the issue.
>
> I had the similar kid of issue - i used following code to fix it
>
> $fileno = fileno(STDIN);
Yes, Apache closes the STDIN on startup.
Thanks for the code snippet, but this does not address my problem. I
am not looking at fixing the perl script as I don't think the problem
lies there. The problem perhaps lies in my customized Apache - I'm not
sure about it.
Rgds,
Rashmi
On Wed, Nov 19, 20