Killing child processes quickly



I've noticed it takes some time for the "kill -9 $PID" command to kill
the child processes of $PID.

What causes this latency, and is there a quicker way to kill all child
processes?

Thanks.

.



Relevant Pages

  • a dead process (a ``zombie)
    ... One day I was at a restaurant explaining process control to one of my disciples. ... I was mentioning how we have to kill the children (child processes) if ... to kill themselves. ... Mail has the best spam protection around ...
    (freebsd-questions)
  • Re: [PATCH] oom killer (Core)
    ... >does not take processes into account which fork a lot of child processes. ... >- Checking for memory threshold before selection and kill. ...
    (Linux-Kernel)
  • Re: [PATCH] oom killer (Core)
    ... > does not take processes into account which fork a lot of child processes. ... > - Checking for memory threshold before selection and kill. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [PATCH] oom killer (Core)
    ... > does not take processes into account which fork a lot of child processes. ... > - Checking for memory threshold before selection and kill. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Hiding the child processes with ps
    ... >trying to kill only the parent process. ... >However, ps also lists the child processes, which I would like to NOT ... If you're trying to kill a process, then you'll be writing a script to ...
    (comp.os.linux.misc)