【Linux命令】杀死僵尸程序
2024-10-11 06:52:05
A zombie is already dead, so you cannot kill it. To clean up a zombie, it must be waited on by its parent, so killing the parent should work to eliminate the zombie. (After the parent dies, the zombie will be inherited by init
, which will wait on it and clear its entry in the process table.) If your daemon is spawning children that become zombies, you have a bug. Your daemon should notice when its children die and wait
on them to determine their exit status.
Example command:
kill $(ps -A -ostat,ppid | awk '/[zZ]/{print $2}')
最新文章
- 踏上Salesforce的学习之路(一)
- s1=s1+1与s1+=1的区别
- 深入理解Redis:命令处理流程
- OpenCV中IplImage和Mat间的相互转换
- Java中的队列:java.util.Queue接口
- MS-DOS 7.10完整安装版(含图文安装程序)
- Android技术精髓-Bitmap详解
- LoaderManager使用具体解释(二)---了解LoaderManager
- [转] Building xnu for OS X 10.10 Yosemite
- 浏览器特性检测插件Feature.js
- LeetCode &; 118-Pascal's Triangle-Easy
- HDFS 读写数据流程
- 《FPGA全程进阶---实战演练》第一章之FPGA介绍
- 关于Floyd求解最小环的问题
- 百视通与微软共同宣布9月在华发布Xbox One
- Anaconda+django写出第一个web app(五)
- HashSet、HashMap、Hashtable、TreeMap循环、区别
- 64位win10系统无法安装.Net framework3.5的两种解决方法【转】
- hdu5698瞬间移动(杨辉三角+快速幂+逆元)
- mysql 研发规范