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 19: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.