Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Wait hangs when pipe is full

by Zaxo (Archbishop)
on Sep 03, 2003 at 03:55 UTC ( [id://288499]=note: print w/replies, xml ) Need Help??


in reply to Wait hangs when pipe is full

The following rearrangement may help,

# ... the loop close( PARENT ); print "parent received: "; print '.' while <CHILD>; print "\n"; close( CHILD ); while( %pid ) { reap() }
That lets you draw down the buffer, making room for the other kids to print. It would also do no harm to try autoflushing the PARENT handle.

After Compline,
Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://288499]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found