因为没有指出是什么系统,我这里一下Linux下如何通过ps命令来查看僵尸进程:
ps的帮助文档中有指出,僵尸进程会被标记为defunct。
Processes marked <defunct> are dead processes (so-called "zombies") that remain
because their parent has not destroyed them properly.
These processes will be destroyed by init(8) if the parent process exits.
所以通过下面命令可以查找出僵尸进程:
ps aux | grep defunct