发信人: tcpip (俺的昵称改了), 信区: cnunix
标  题: Re: 如何杀僵死进程?
发信站: 哈工大紫丁香 (Sun Sep 26 17:59:17 1999), 转信

发信人: ColorEye (色眼眯眯), 信区: Solaris
发信站: 华南网木棉站 (Mon Aug  2 21:48:39 1999), 转信

【 在 upwind (迎风) 的大作中提到: 】
: 【 在 ColorEye (色眼眯眯) 的大作中提到: 】
: : find out the father process of zombies, kill him
: : needn't reboot
: zombies一般都是父进程先死了, 子进程腿出时候没有父进程回收它的proc
: 结构才这样的啊。 
: 怎么可能再去杀它的父进程?

when child exits but father doesn't "wait" it, then zombie genrates
when recv SIGCLD signal, father should "while(wait3(...WNOHANG));", but not
simple one word "wait(...);"...

so some bad style server programs can generate zombie child when child born
and die too soon
u should find it then kill it, then all zombies gernerated by that server
will dispear

i ever wrote many server programs in solaris, i know clearly about this

--
※ 修改:.trueip 于 Sep 26 18:03:05 修改本文.[FROM: dns.mtlab.hit.ed]
--
※ 转寄:.华南网木棉站 bbs.gznet.edu.cn.[FROM: dns.mtlab.hit.ed]

--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: trueip.bbs@melon.gzn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.221毫秒