Difference between revisions of "Zombie"

From Hackepedia
Jump to navigationJump to search
Line 1: Line 1:
A zombie [[process]] is a process awaiting collection by a parent.  To clean them up the parent [[process]] reaps the child with the [[wait]](2) [[syscall]].  [[Orphan]]ed [[process]]es are reaped by [[init]].
+
A zombie [[process]] is a process awaiting collection by a parent.  To clean them up the parent [[process]] reaps the child with the [[wait]](2) [[syscall]], it knows when to do this because the kernel notifies it that the child has entered zombie state by means of the SIGCHLD [[signal]].  [[Orphan]]ed [[process]]es are reaped by [[init]].

Revision as of 03:21, 27 October 2005

A zombie process is a process awaiting collection by a parent. To clean them up the parent process reaps the child with the wait(2) syscall, it knows when to do this because the kernel notifies it that the child has entered zombie state by means of the SIGCHLD signal. Orphaned processes are reaped by init.