As I understand it, a zombie process has died but still exists as a placeholder in the process table until its parent (or init
if the zombie is itself an orphan) checks its exit status.
And my understanding of orphan processes is they are processes that are still alive and running but whose parent has died.
Since a zombie is already dead, its children would be considered orphans, wouldn't they? Would they be affected be reaping the zombie? Specifically, would init
adopt them as its children only once the zombie was reaped, or would they be adopted as soon as the parent became a zombie?
init
as soon as their parent dies (and that includes its becoming a zombie). A zombie won't take care of its children. It won't do anything. It's just a death status information floating around in apid
spot. – Petr Skocik Dec 11 '15 at 20:13init
? – Wildcard Dec 11 '15 at 20:14init
reaps them. – Petr Skocik Dec 11 '15 at 20:20