Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Syntactic Confectionery Delight
 
PerlMonks  

Re: Signal handling problem

by Aristotle (Chancellor)
on Oct 02, 2003 at 15:38 UTC ( [id://296050]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Signal handling problem

sleep while (%child_pids);
But you never do anything that would clear the %child_pids hash.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Signal handling problem
by gnu@perl (Pilgrim) on Oct 02, 2003 at 15:47 UTC
    I actually do that, I forgot and left that line out, it is further up in the code, sorry.

    I do clear the hash, the reap_child sub is called by the $SIG{CHLD}= \&reap_child signal, this sub reaps the child with 'waitpid' and removes the pid from the hash.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://296050]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.