My immediate guess is that someone, somewhere, is buffering
input and/or output and that is leading to deadlock. But
tracing your intended trace of actions, that isn't the
case.
My second guess is that this has something to do with the
emulation on Windows of Unix functionality. I see a call
to IPC::Open2, which is a wrapper around IPC::Open3.
Under NT I have had mixed success. I have run stuff and
had it work. But it failed with more complex stuff.
Dunno if that is the problem, but there is absolutely no
way that it would be a bad idea to test the success of your
open2 and close calls. Plus when you close out a process
you probably need to explicitly wait to pick up your
children (and be able to trap error information from them).
Now doing all that probably will not solve your problem
directly, but there is a good chance that it will at the
least give you a far more specific set of error messages
to stare at...
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.