Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Should check for FD 0 when proxying STDIN [rt.cpan.org #75221] #4

Open
dagolden opened this Issue · 0 comments

1 participant

@dagolden
Owner

https://rt.cpan.org/Ticket/Display.html?id=75221

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.