New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing a pipe when there is a dup causes a hang #11143
Comments
From @cpansproutWhen trying to fix [perl #78494] I discovered the following: open(my $OUT, "| cat -n"); Closing $OUT2 first works, but closing $OUT, as in this example, causes a hang. This is because PL_fdpid lists the process ID for $OUT but not $OUT2. When $OUT is closed, my_pclose (in util.c) waits for the child process to end, but the child process is still waiting for the fd to be closed, while $OUT2 is hanging on to it. Flags: Site configuration information for perl 5.13.9: Configured by sprout at Sat Feb 12 14:34:11 PST 2011. Summary of my perl5 (revision 5 version 13 subversion 9) configuration: Locally applied patches: @INC for perl 5.13.9: Environment for perl 5.13.9: |
Migrated from rt.perl.org#84494 (status was 'new')
Searchable as RT84494$
The text was updated successfully, but these errors were encountered: