[Israel.pm] $SIG{CHLD}
Pinkhas Nisanov
nisanov at netvision.net.il
Thu Nov 4 02:00:15 PST 2004
Eitan Schuler wrote:
>This works nice, the 'kill' kills the child perl process. BUT the "csh -f "
>becomes a zombie, because I killed it's parent (of course).
>
>
Process cannot become zombie if it's parent die, the "init" process
run "wait" for processes without parent, I think "external_program"
became zombie, not "csh". Try to use "exec" instead of "system + csh", e.g.:
if( $pid == 0 ) {
exec "external_program";
}
so "kill 9 => $pid" in parent will kill external_process directly.
regards
Pinkhas Nisanov
More information about the Perl
mailing list