|
Sending SIGKILL/signals to process and all children?
kill -9 pid seems to kill a process and orphan all child processes. From my understanding a standard SIGTERM signal relies on the receiving process to send termination/whatever signals to it's children, which SIGKILL doesn't give it a chance to do.
So how can I manually send SIGKILL to all children without doing it by hand or having to write a shell script (pstree and some awk/sed could probably do it, but It would be nice if there was a "default" way).
The gdm and child processes don't belong to the same process group, so kill -pid won't do it.
My need for this comes from gnome crashing when I enable certain compiz plugins (buggy video drivers supposedly). The gdm will only respond to SIGKILL, and using this orphans all the children. From this point I need to either restart, or manually SIGKILL all the pids.
Last edited by thecake; 12-19-2008 at 03:09 PM.
|