我正在使用golang调用pppd,然后在一段时间后将其杀死。但是我以这种方式得到了很多失效的进程。这是我运行pppd的方式exec.Command("sh","-c","pppdcallvpn").CombinedOutput()我就是这样杀死它的。exec.Command("sh","-c","pkillpppd").CombinedOutput()然后我得到了很多这个root3154123536010:54?00:00:00[pppd]root3192923356010:55?00:00:00[pptpgw]root3193323356010:55?00:00:00[pptpcm
我正在使用golang调用pppd,然后在一段时间后将其杀死。但是我以这种方式得到了很多失效的进程。这是我运行pppd的方式exec.Command("sh","-c","pppdcallvpn").CombinedOutput()我就是这样杀死它的。exec.Command("sh","-c","pkillpppd").CombinedOutput()然后我得到了很多这个root3154123536010:54?00:00:00[pppd]root3192923356010:55?00:00:00[pptpgw]root3193323356010:55?00:00:00[pptpcm
僵尸进程和死进程有区别吗?我找到了维基百科文章,其中写道这两个是相同的。在那种情况下,为什么需要为同一过程设置2个不同的术语:https://en.wikipedia.org/wiki/Zombie_process 最佳答案 对于Linux,“defunct”和“zombie”进程是一样的。来自manps:Processesmarkedaredeadprocesses(so-called"zombies")thatremainbecausetheirparenthasnotdestroyedthemproperly.Thesepro