zombie process can't be killed

前端 未结 6 673
北海茫月
北海茫月 2021-01-02 08:41

Is there a way to kill a zombie process? I\'ve tried calling exit to kill the process and even sending SIGINT signal to the process, but it seems t

6条回答
  •  孤街浪徒
    2021-01-02 09:20

    kill -17 ZOMBIE_PID

    OR

    kill -SIGCHLD ZOMBIE_PID

    would possibly work, bu tlike everyone else said, it is waiting for the parent to call wait() so unless the parent dies without reaping, and it got stuck there for some reason you might not want to kill it.

提交回复
热议问题