Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Coping with a large family (interprocess communication)

by AgentM (Curate)
on Apr 23, 2001 at 18:18 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://74718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-09-11 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (13 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.