Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Capture-Tiny CPAN distribution.

Report information
The Basics
Id: 75221
Status: new
Priority: 0/
Queue: Capture-Tiny

People
Owner: Nobody in particular
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Should check for FD 0 when proxying STDIN
It's possible for require/do to grab FD 0 and not let go. C.f. https://rt.perl.org/rt3/Ticket/Display.html?id=37033 When CT finds STDIN closed and opens a proxy to use to set up forks in a child, it should check for FD 0. If STDIN is not on FD 0, CT should dup FD 0, close FD 0, open STDIN to FD 0, do what it needs to do, then restore FD 0 as it was... if possible.