Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I am hopeing that somebody can add some clarity to this old thread. Can somebody tell me why the following coded hangs if the line which defines the @outlines array is commented out? I have used open3 in other places w/o reading the the child's output and the process didn't hang. I expect it is because in that case the command didn't have output. I understand how some of the other example programs in this thread prevent locking while read from open3's handles but it seems strange that this would lock when I am not reading from them and just calling waitpid as soon as possible.
Also, should I explicitly close $wtr, $rtr, and $err?
In reply to Re^2: IPC::Open3 woes
by LNEDAD
|
|