SUMMARY: Kill a process and all children

From: Mehall, Michael R. (michael_r_mehall@md.northgrum.com)
Date: Fri Apr 26 2002 - 15:57:29 EDT


All,
Thanks to Oisin McGuinness for "hitting the nail on the head"! I think I
had a semantics problem with the kill man page! As pointed out by Oisin,
the way to kill a parent and all of its children is by killing the "process
group" (I didn't realize I wanted to kill the process group!).

This is done by inserting a "-" in front of the PID # as in the following
example of parent PID 1234:

        kill -TERM -1234

The original post follows:

Tru gurus,
        Does anyone know how to kill a process and all of its children? I
thought it was kill -TERM <PID#> but this isn't working. I'm on Tru64 5.1
patch kit 4. TIA!

Mike Mehall
SAP Basis Team
Northrop Grumman Corp.
410-765-0355
michael_r_mehall@mail.northgrum.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:39 EDT