I have a perl script which does some stuff. One of the things it does is fork a child and wait for results from the child. The child executes this simple piece of code:
eval{ $pid = open3( $write, $read, $error, $shebang, $_ ) };
Where
$write, $read, $error are all empty to be used as filehandles,
$shebang is "perl" and
$_ is "usr/test.pl". Heres the thing. When test.pl prints out total content equal to or less than 488 characters, everything works properly. But if test.pl prints out 488 characters, the open3 call hangs and the script never advances beyond it. Anyone have the vaguest idea where I could look, or what I could use instead of open3?
Test.pl is literally:
print "x" x 488 when it works and
print "x" x 489 when it doesn't.
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.