![]() |
|
P is for Practical | |
PerlMonks |
Re: Re: nite of the living dead: perl and stunnel make zombiesby merlyn (Sage) |
on Nov 22, 2000 at 03:42 UTC ( #42830=note: print w/replies, xml ) | Need Help?? |
That's neither necessary nor sufficient.
The problem is that you might get one SIGCHLD even though more than one child has gone belly up, and thus you aren't waiting long enough. Either use a double-fork solution (so the kids are effectively orphaned grandkids who become adopted by process #1), or a waitpid loop until there are no more kids to reap at opportune times in your algorithm. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|