Subject: | IPC::Run problems with tied STD* handles, as happens in FCGI |
Date: | Wed, 18 Sep 2013 11:20:32 +0200 |
To: | bug-IPC-Run [...] rt.cpan.org |
From: | "A.N." <ailin [...] devio.us> |
To make IPC::Run work in FCGI scripts, it would be helpful to add these
three unties at the beginning of close_terminal sub:
untie *STDIN; untie *STDOUT; untie *STDERR;
otherwise it dies with Internal Server Error when trying to use ptys.
Untying is fine as it only happens in the fork. (The error hidden behind
the Internal Server Error is "Not a GLOB reference" when trying to close
any of the tied handles)