LINUX.ORG.RU

Ответ на: комментарий от maxcom

Не реагирует.

С чем связано, что <defunct> потомка может убить только родитель? Напоминает:

вы действительно хотите закрыть это окно?
вы действительно хотите закрыть это окно?
вы действительно хотите закрыть это окно?
вы действительно хотите закрыть это окно?
вы действительно хотите закрыть это окно?
закрыто
ipc
() автор топика
Ответ на: комментарий от ipc

>С чем связано, что <defunct> потомка может убить только родитель?

Если его убить, а потом его родитель все-таки сделает wait, то он не сможет получить его код возврата.

simplex
()
Ответ на: комментарий от ipc

>С чем связано, что <defunct> потомка может убить только родитель?

man wait, NOTES:

A child that terminates, but has not been waited for becomes a «zombie». The kernel maintains a minimal set of information about the zombie process (PID, termination status, resource usage information) in order to allow the parent to later perform a wait to obtain information about the child. As long as a zombie is not removed from the system via a wait, it will consume a slot in the kernel process table, and if this table fills, it will not be possible to create further processes. If a parent process terminates, then its «zombie» children (if any) are adopted by init(8), which automatically performs a wait to remove the zombies.

JackYF ★★★★
()

defunct процессы нельзя убить. Они уже мёртвые. А чем они, собственно, мешают, кроме мелькания в ps?

Laz ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.