> My perl script forks and the child is subsequently replaced by another
> (non-Perl) program with exec(). That child has its own subprocess.
>
> In response to certain events, the parent tries to kill the child (and
> its children).
>
> Currently, my method for doing this is:
>
> local $SIG{HUP} = 'IGNORE';
> kill HUP => -$$;
>
> This works fine when the parent is run directly from a command prompt;
> however, when the parent is itself called from a shell script, the
> child's children are not killed.
..........
Can you show the rest of the code? There is documentation about this in the
Perl Cookbook, if you have access to that.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 8/11/2004
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>