Failed to dup STDIN: Bad file descriptor.

2008-11-19 Thread Rashmi Badan
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

Re: Failed to dup STDIN: Bad file descriptor.

2008-11-19 Thread Rashmi Badan
if ( defined($fileno) and $fileno != 0) > { > $stdin = IO::Handle->new(); > $stdin->fdopen(0, "w") || > die "Unable to open STDIN using fd 0: $!\n"; > } > else > { >