杀死并没有真正终止幻影过程 [英] kill doesn't actually terminate the ghost process

查看:138
本文介绍了杀死并没有真正终止幻影过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于杀死并没有真正终止幻影过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆