1
Siril 2017 年 2 月 13 日
得散点纸钱才行
|
2
linbiaye 2017 年 2 月 13 日
不重启还能咋办,至多社区报个 bug.
|
3
dbg 2017 年 2 月 13 日 我还以为是 init 和 systemd 的引战帖子。
|
6
hareandlion 2017 年 2 月 13 日 via iPhone
死了变僵尸活着
|
8
MartinWu OP 现在的一些线索导向,可能是 supervisor 的锅。两次都是在 supervisord 上面重启过所有的 app 后,僵尸进程就突然消失了。。然而, supervisord 并没有用 root 启动,而是一个没权限切到 root 的普通账号。
|
9
MartinWu OP 还在继续跟踪。。
|
10
Siril 2017 年 2 月 14 日
https://www.google.com/search?q=how+to+create+zombie+process&ie=utf-8&oe=utf-8&client=firefox-b-ab
据说是这样,未亲手验证: 先 fork 出一个子进程, 然后父进程 sleep ,子进程 exit , 子进程就 zombie 了。 然后根据这个: https://www.google.com/search?q=how+to+create+zombie+process&ie=utf-8&oe=utf-8&client=firefox-b-ab#q=cleanup+zombie+process 干掉父进程,子进程会被 init 接管,然后会被 wait 后清除。 所以? init 接管后还有一大堆 zombie ? 哪里的 bug 呢 试试这个: https://stackoverflow.com/questions/20535438/cant-cleanup-a-zombie-process-whose-parent-is-init |