小编Zol*_*jda的帖子

僵尸进程如何像 TCP 端口一样持有系统资源?

我的僵尸进程(示例中的 PID 5693)如何拥有像 TCP 端口(示例中的端口 21050,但在我的实际情况中它拥有更多,如 pty 和其他文件描述符)之类的资源?以及如何在不重新启动的情况下释放 TCP 端口?我什至不明白一个进程怎么会处于这种状态(我的意思是,作为一个僵尸并且仍然持有资源)。

[root@mycomputer ~]# ps -fe | grep 5693
user      5693     1   0 Apr03 ?        00:01:12 [myproc] <defunct>
user      5835  5693   0 Apr03 ?        00:00:00 [mysubproc] <defunct>
root      58888 58050  0 17:39 pts/1    00:00:00 grep 5693
[root@mycomputer ~]# lsof | grep  21050
Systemtas 5693        user   15u     IPv4            3853742       0t0        TCP *:21050 (LISTEN)
[root@mycomputer ~]#
Run Code Online (Sandbox Code Playgroud)

linux tcp process

5
推荐指数
1
解决办法
3129
查看次数

标签 统计

linux ×1

process ×1

tcp ×1