How to kill zombie process

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

    I tried:

    ps aux | grep -w Z   # returns the zombies pid
    ps o ppid {returned pid from previous command}   # returns the parent
    kill -1 {the parent id from previous command}
    

    this will work :)

提交回复
热议问题