How to kill zombie process

前端 未结 6 1439
暗喜
暗喜 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:02

    Sometimes the parent ppid cannot be killed, hence kill the zombie pid

    kill -9 $(ps -A -ostat,pid | awk '/[zZ]/{ print $2 }')
    

提交回复
热议问题