Neither fork nor open3 does any ipc*, so that's not true.
open3 does setup the child's STD handles to do ipc (if so instructed), but that shouldn't depend on the parent's STD handles.
I do consider this a bug in open3, but it's only triggered under odd, easily avoidable circumstances. ("It hurts when I do this." "So don't do that")
* — Yet. At the moment, it's not possible to distinguish between an exec failure and the child exiting with code 255, and it's not possible to capture the cause of the exec failure. I have a patch for open3 (waiting on Perl 5.12's release) that will have open3 communicate exec failures to the parent via ipc.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.