Re: Can't kill forked grandchildren when running from shell script

2004-08-19 Thread Adam Rosi-Kessel
On Tue, Aug 17, 2004 at 08:22:09PM -0400, Jim wrote: >> [problem killing grandchildren when perl script runs from shell >> script] > your right the code is standard, I usually don't run perl scripts from shell > scripts except for cron jobs. I will take a look at some of my similar > scripts and s

RE: Can't kill forked grandchildren when running from shell script

2004-08-17 Thread Jim
> Yes, I have the Perl Cookbook. I think I've read and tried all the > relevant recipes from there, but I'm still unable to kill > grandchildren > when the child's output is redirected to /dev/null and the > parent is run > from a shell script. > > Here's the basic code simplified a bit for illus

Re: Can't kill forked grandchildren when running from shell script

2004-08-17 Thread Adam Rosi-Kessel
On Tue, Aug 17, 2004 at 05:38:53PM -0400, Jim wrote: > > 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). >

RE: Can't kill forked grandchildren when running from shell script

2004-08-17 Thread Jim
> 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{HU

Can't kill forked grandchildren when running from shell script

2004-08-17 Thread Adam Rosi-Kessel
I'm not sure if beginners is the most appropriate place for this question; if not, please suggest another list. 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