How do you kill a process tree in linux?

Posted by itsadok on Server Fault See other posts from Server Fault or by itsadok
Published on 2009-07-14T07:29:53Z Indexed on 2010/05/05 12:08 UTC
Read the original article Hit count: 271

Filed under:
|
|

Sometimes, sending a SIGTERM to a process will cause it to send SIGTERM to all its child processes. However, sometimes this doesn't work.

Is there a command or a utility that will allow me to kill a process and all its child processes at the same time? I usually resort to manually collecting all the pids into one kill command, but it feels stupid.

This SO question asks how to do this with perl, but anything that gets the job done would be great.

© Server Fault or respective owner

Related posts about processes

Related posts about kill