in reply to nite of the living dead: perl and stunnel make zombies
This needs to be set before (execution-wise) any fork is done.$SIG{CHLD} = sub { wait };
Update: I am working under the assumption that your description of "a zombie" being left behind was accurate. If there's a chance that you'll get multiple child deaths rapidly, merlyn explains below that this is not sufficient. Regardless, the "standard" REAPER function that you said you were using should have worked in the first place. I am suspicious that $SIG{CHLD} isn't being declared in the correct place or is being localized unnecessarily.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: nite of the living dead: perl and stunnel make zombies
by merlyn (Sage) on Nov 22, 2000 at 03:42 UTC | |
by Chmrr (Vicar) on Nov 22, 2000 at 05:10 UTC | |
by extremely (Priest) on Nov 22, 2000 at 06:27 UTC | |
|
(tye)Re: nite of the living dead: perl and stunnel make zombies
by tye (Sage) on Nov 22, 2000 at 03:12 UTC |