SUMMARY: Kill a process and all children

From: Mehall, Michael R. <michael_r_mehall_at_md.northgrum.com>
Date: Fri, 26 Apr 2002 12:57:29 -0700

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_at_mail.northgrum.com
Received on Fri Apr 26 2002 - 19:57:37 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT