in reply to nite of the living dead: perl and stunnel make zombies

I'm not sure what you consider a standard REAPER function, but this should do the trick:


(untested for syntax errors or other nonsense)
$SIG{'CHLD'} = \&REAPER; sub REAPER { 1 until (waitpid(-1,WNOHANG) == -1); #Loop in case we have #multiple children $SIG{'CHLD'} = \&REAPER; #reinstall the signal #handler }


cephas

Replies are listed 'Best First'.
Re: Re: nite of the living dead: perl and stunnel make zombies
by jhanna (Scribe) on Nov 29, 2000 at 21:55 UTC
    Guys, Thanks for the comments... I'm wondering if the issue is that PERL and it's system(@_) call are the CHLDren and grandCHLDren of Stunnel... does that matter? j