[BBLISA] To kill a process tree

Paul Beltrani spamgrinder at gmail.com
Thu Apr 2 23:42:30 EDT 2009


On Thu, Apr 2, 2009 at 4:43 PM, Edward Ned Harvey <bblisa3 at nedharvey.com> wrote:
> I know if I simply "kill pid" then the process and all its children will
> die.  But I don't want to kill them.  I want to "kill -SIGTSTP pid" ... and
> this works as long as I name all the pids in the process tree.  It does not
> cascade the signal to all the child processes if I only name the parent pid.
>
> Does anybody know a way to send a specific kill signal to a all the
> descendents of some specific pid?
>
...

You didn't mention which OS you're using.  You may want to see if
"pgrep/pkill" is available.

e.g. pkill -SIGTSTP -P ppid

  - Paul Beltrani




More information about the bblisa mailing list