How do you kill a process tree in linux?
- by itsadok
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.