hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hello all!
I'm using kill('KILL', $pid) to kill a process. This process creates children, and I want somehow to kill them too, how can I do that? Is there in Perl something similar to pstree -plc $PID (like in Unix), that can help me get the children's pid, or even something that gets a pid as parameter and kills it with it's children?
I'm using kill('KILL', $pid) to kill a process. This process creates children, and I want somehow to kill them too, how can I do that? Is there in Perl something similar to pstree -plc $PID (like in Unix), that can help me get the children's pid, or even something that gets a pid as parameter and kills it with it's children?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Killing child process
by robartes (Priest) on Oct 12, 2003 at 10:51 UTC | |
Re: Killing child process
by Thelonius (Priest) on Oct 12, 2003 at 12:02 UTC | |
by sgifford (Prior) on Oct 12, 2003 at 15:49 UTC | |
by Thelonius (Priest) on Oct 13, 2003 at 02:20 UTC | |
by sgifford (Prior) on Oct 13, 2003 at 03:31 UTC | |
by pg (Canon) on Oct 12, 2003 at 17:02 UTC | |
by sgifford (Prior) on Oct 12, 2003 at 17:42 UTC | |
Re: Killing child process
by zentara (Archbishop) on Oct 12, 2003 at 17:15 UTC |
Back to
Seekers of Perl Wisdom