How to kill zombie process

前端 未结 6 1437
暗喜
暗喜 2020-12-02 03:33

I launched my program in the foreground (a daemon program), and then I killed it with kill -9, but I get a zombie remaining and I m not able to kill it with

6条回答
  •  醉酒成梦
    2020-12-02 04:29

    You can clean up a zombie process by killing its parent process with the following command:

    kill -HUP $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')
    

提交回复
热议问题