Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Re: Have children maintain themselves or main script maintain children.

by the_0ne (Pilgrim)
on May 11, 2001 at 21:50 UTC ( [id://79785]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Have children maintain themselves or main script maintain children.
in thread Have children maintain themselves or main script maintain children.

Thanks for the explanation. We HAVE run into your first bulletpoint. We had some children come back that gave us the pid instead of 0 or -1 and had to work around that. So, I can understand your explanation there.

for instance the section on a preforking daemon

I'm almost positive (I don't have the book here with me today.) that the preforking daemon is the major example we used and you're right, it does not have the waitpid. We got lucky and found that in a post on good old PM.

Personally I would ignore SIGCHLD and make the parent wait() for the children to die. It will be nicely blocked (ie not using any excess CPU) until it needs to do something (ie make more children).

gr0k and I were just talking about that. I think my weekend project has just shown up. :)

Thanks to everybody that has helped out with this node.
  • Comment on Re: Re: Re: Re: Have children maintain themselves or main script maintain children.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found