Could you show us some reasonably short piece of code that reproduces the problem? Also, it would help to know what the program being called is doing, in particular the specifics of how it's handling reads and writes to the pipe. Smooth bidirectional communication depends as much on the behaviour of the process at the other end of the pipe, as it does depend on the side calling the open2.

For example, it could be some deadlock situation arising due to different buffer sizes involved, different timings, etc. (I.e. both sides are waiting for the other side to make the next step — which means that, without external intervention, they'd remain in that unfortunate state forever...). However, that's just a shot in the dark... I don't think there's any glaringly obvious explanation for why things are no longer working, so more details might help to generate other hypotheses.


In reply to Re: open2() in Windows by almut
in thread open2() in Windows by bhaveshbp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.