From f4744187b74d915e45c32a5b8c8122b560604a08 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 27 Apr 2012 09:27:14 -0400 Subject: [PATCH] Add killing-defunct-processes post. --- posts/Killing_defunct_processes.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 posts/Killing_defunct_processes.mdwn diff --git a/posts/Killing_defunct_processes.mdwn b/posts/Killing_defunct_processes.mdwn new file mode 100644 index 0000000..9481ef6 --- /dev/null +++ b/posts/Killing_defunct_processes.mdwn @@ -0,0 +1,16 @@ +[Allen Rueter][AR] [points out][ref] that one way to kill a defunct +process is to kill its parent or child: + + # ps -ef | grep '\|PPID' + UID PID PPID C STIME TTY TIME CMD + zzz 13868 1 0 0:00 + # ps -ef | grep '13868\|PPID' + UID PID PPID C STIME TTY TIME CMD + zzz 13868 1 0 0:00 1 + zzz 16596 13868 0 0:00 a.out + # kill -9 16596 + +[AR]: http://www.cts.wustl.edu/~allen/ +[ref]: http://www.cts.wustl.edu/~allen/kill-defunct-process.html + +[[!tag tags/linux]] -- 2.26.2