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
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);
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