in reply to Re: Daemon causing zombies under 5.8
in thread Daemon causing zombies under 5.8
do. Looking at this page there is this code as well, which is probably what you want to add, and is probably your source of zombies:child{ .....}
use Proc::Fork; child { # child code goes here. } parent { my $child_pid = shift; # parent code goes here. waitpid $child, 0; } error { # Error-handling code goes here (if fork() fails). }; # Note the semicolon at the end. Necessary if other statements follow +.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Daemon causing zombies under 5.8
by trs80 (Priest) on Jan 14, 2003 at 04:38 UTC |