http://www.perlmonks.org?node_id=897857


in reply to stderr to script-logfile with CGI::Fast

The cause of the "problem"

From http://cpansearch.perl.org/src/BOBTFISH/FCGI-0.70/os_unix.c:

/* * Close STDIN unconditionally. It's used by the parent * process for CGI communication. The FastCGI applciation * will be replacing this with the FastCGI listenFd IF * STDIN_FILENO is the same as FCGI_LISTENSOCK_FILENO * (which it is on Unix). Regardless, STDIN, STDOUT, and * STDERR will be closed as the FastCGI process uses a * multiplexed socket in their place. */