杀死并没有真正终止幻影过程

杀死并没有真正终止幻影过程

问题描述:

为了终止虚幻进程(尚未正确终止的进程,因此它仍然有待杀死) 我用

In order to terminate the ghost process (process which hasn't terminated properly and hence it still pending to be killed) I used the

kill -9 <process-id>

有时它运行良好,当我杀死它后检查进程时,它就消失了

At times it works perfectly, and when I check the process after killing it, it is gone

ps -aux | grep python

但是,令人惊讶的是,即使在kill命令之后,我现在仍然能够看到幻影过程.有什么问题吗?

However, surprisingly, now I am able to see the ghost process even after the kill command. What's the problem?

在上图中,我尝试终止ID为23756的进程,但该进程仍显示在ps aux

In the image above, I tried to kill the process with id 23756 but it still appears in ps aux

请参阅我对上一个Visual Studio幻影处理问题的回答

Referring to my answer to previous question of Visual Studio ghost process

VSCode杀死正在运行的进程

看起来,我不得不关闭仍然不完整的调试过程.基本上,杀死应用程序或关闭调试程序或这些行上的内容,可以帮助您终止幻影过程.

Looks like, I had to close the debug process that was still incomplete. Basically, killing the application or closing the debug or something on those lines, helps you to terminate the ghost process.