in reply to Re: nite of the living dead: perl and stunnel make zombies
in thread nite of the living dead: perl and stunnel make zombies
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: nite of the living dead: perl and stunnel make zombies
by Chmrr (Vicar) on Nov 22, 2000 at 05:10 UTC | |
by extremely (Priest) on Nov 22, 2000 at 06:27 UTC |