May 15, 2006

Define a zombie process. Followup: when and why does init become the parent of a process?

Filed under: Linux, FreeBSD, *NIX, Interview Question — Administrator @ 3:28 pm

A process becomes a zombie when it’s parent exits without calling wait().

Followup:
Only when the parent-process is dead, then the orphaned child-processes, zombies or not, are adopted by init. The analogy seems to be that you can adopt an orphan but not a child that has a living parent. The processes that init thus adopts will run happily until their own exit(2).

Leave a Reply

Proudly powered by wordpress - Theme by neuro