Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Wait hangs when pipe is full

by Abigail-II (Bishop)
on Sep 03, 2003 at 08:44 UTC ( [id://288545]=note: print w/replies, xml ) Need Help??


in reply to Wait hangs when pipe is full

The problem is that your buffers are filling up. You keep on writing to your pipe, but you don't read from it until all children have finished writing. But eventually, the buffer fills up, the child that's currently writing cannot write and hence will block. In the main time, your main program is waiting for the child to exit.

So, you have a deadlock. You have a child that is waiting for the parent to read something, and a parent that's waiting for a child to terminate.

Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found