Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Coping with a large family (interprocess communication)

by AgentM (Curate)
on Apr 23, 2001 at 18:18 UTC ( #74718=note: print w/ replies, xml ) Need Help??


in reply to Coping with a large family (interprocess communication)

Could the problem be that you don't actually fork anywhere? Essentially, the child pid code if statement is never executed. In your parent code, you should first be reading from the shared fd-which you don't do- but it's probably not best to give the same handle to every child unless the data is small. I'd also suggest skipping all of this complicated file handler stuff and sticking to the half-duplex pipe. A Filehandle to a child won't accomplish much. ++ for variable name $childs! Hilarious! Ask me further if you need any clarification. Good luck!

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.


Comment on Re: Coping with a large family (interprocess communication)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-09-16 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (158 votes), past polls