[Israel.pm] $SIG{CHLD}
Eitan Schuler
Eitan.schuler at exlibris.co.il
Thu Nov 4 00:52:33 PST 2004
Pinkhas,
Thanks. The 'exec' has really solved the problem.
Thank you
Eitan
> -----Original Message-----
> From: Pinkhas Nisanov [mailto:nisanov at netvision.net.il]
> Sent: Thursday, November 04, 2004 12:00 PM
> To: Perl in Israel
> Subject: Re: [Israel.pm] $SIG{CHLD}
>
>
> 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
>
>
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>
More information about the Perl
mailing list