Why SIGKILL Cannot Remove a Linux Zombie Process
A process in the Z state can persist in the process table even after receiving kill -9, which often confuses administrators. Such a zombie has already exited, so its memory, file descriptors, and execution context have been released by the kernel. Only a small record remains so the parent can read the child's exit status and resource statistics. Because nothing is left running, SIGKILL has no effect, and the entry is cleared only when the parent calls a wait function. The article notes that the parent's PID, found through ps, usually reveals a bug in how the parent handles child termination, and that orphaned zombies are adopted and reaped by an init-like process.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in