Skip to content

Zombie process

A terminated Unix child process whose process-table record and exit status remain until its parent waits and the kernel reaps it.

Version
v2 · 2026-11-14 · History
Domain-specific #
12960
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Operating Systems, Unix Process Management → Computer Science & Software Engineering
Aliases
Defunct process

Core Idea

A Unix child does not disappear at the instant it exits. The kernel releases its execution resources but retains a minimal process-table entry containing identity and exit status so the parent can learn how it finished. During this interval the child is a zombie or defunct process.

When the parent calls wait, the status is delivered and the kernel reaps the entry, freeing the PID for reuse. A zombie cannot be killed because it is already dead; the repair belongs to the parent–reaper relationship. This differs from an orphan, which is still executing after its parent has died and can be adopted by a designated reaper.

How would you explain it like I'm…

Done-But-Not-Gone Program

When a computer program finishes its job, it doesn't vanish right away. It leaves a tiny note saying 'I'm done, and here's how it went' for the program that started it. Until that parent program reads the note, the finished program is called a zombie, because it's done but not quite gone.

Done but Not Gone

On Unix computers, programs can start other programs, called child processes. When a child finishes, the computer frees almost everything it was using, but keeps a tiny record with its ID and how it ended, so the parent program can check. While that record is waiting, the child is a 'zombie' — finished but not fully gone. When the parent asks for the result, the record is cleared and the ID can be reused. You can't kill a zombie because it's already dead; the parent has to collect it.

Unreaped Exited Child Process

In Unix, a child process doesn't disappear the moment it exits. The kernel frees its running resources but keeps a small process-table entry holding its process ID and exit status, so its parent can find out how it ended. During this time it's called a zombie or defunct process. When the parent calls wait (or a similar call), it receives the status and the kernel 'reaps' the entry, freeing the process ID for reuse. A zombie can't be killed since it's already dead; the issue is fixed through the parent reaping it. It's different from an orphan, which is a process still running after its parent has died and gets adopted by a designated reaper process.

 

A zombie (defunct) process is a Unix child that has terminated but whose process-table entry has not yet been reaped. On exit, the kernel releases its execution resources — memory, open files, scheduling state — but retains a minimal entry containing its identity (PID) and exit status so the parent can learn how it finished. When the parent calls wait or a related system call, the status is delivered and the kernel removes the entry, freeing the PID for reuse. Because a zombie is already dead, signals cannot kill it; resolution lies in the parent–reaper relationship, such as the parent waiting or its own termination causing reparenting to a reaper that waits. Accumulated zombies indicate a parent failing to reap and can exhaust PIDs. Zombies differ from orphans, which are still executing after their parent dies and are adopted by a designated reaper.

Structural Signature

Sig role-phrases:

  • terminated child — has finished execution and can no longer run code It is essential. Counterfactual: A live process cannot be a zombie.
  • exit status — provides completion information still owed to the parent It is essential. Counterfactual: Without pending status there is no reason to retain the child record.
  • process-table entry — holds PID and termination metadata after resource release It is essential. Counterfactual: Once removed, the zombie no longer exists as a process state.
  • parent process — owns the responsibility and opportunity to collect child status It is essential. Counterfactual: Zombie state is relational to parent–child lifecycle.
  • wait operation — collects status and permits reaping It is essential. Counterfactual: Failure to wait is what makes the record persist.
  • kernel reaping — removes the residual record and permits PID reuse It is essential. Counterfactual: A user-space signal cannot terminate something already dead.

What It Is Not

  • It is not a running process that is merely hung.
  • It is not an orphan process.
  • It is not consuming its former full address space and CPU.
  • It is not removable by sending a normal termination signal to the zombie itself.
  • Closest near-miss. An orphan is alive after losing its parent; adoption by a reaper prevents its eventual exit status from remaining indefinitely.

Scope of Application

  • Unix process control. Parent–child exit status is transmitted through wait.
  • Server debugging. Persistent zombies reveal missing reaping logic.
  • Resource management. Accumulation consumes process-table and PID capacity.
  • Operating-system teaching. The state separates execution lifetime from accounting lifetime.

Clarity

Report process state, PID, parent PID, duration, count, and whether the parent is live and waiting. Distinguish transient normal zombies from persistent accumulation. File or buffer retention can involve related process or descriptor behavior and should not be attributed without verification.

Manages Complexity

The state is a deliberately tiny remnant that makes asynchronous child completion reliable. Its morbid metaphor obscures the protocol: the kernel preserves information rather than code. Problems arise from unbounded accumulation, not from a brief record.

Abstract Reasoning

  1. Confirm the process has terminated rather than merely stopped or slept.
  2. Inspect whether a defunct process-table entry remains.
  3. Identify the parent and the uncollected exit status relationship.
  4. Determine whether the state is transient or accumulating.
  5. Check parent handling of child-exit notification and wait calls.
  6. Allow the appropriate parent or reaper to collect status.
  7. Verify entry removal and prevent recurrence in process-control logic.

Knowledge Transfer

The general pattern—completed task retained until acknowledgment—transfers to queues and distributed systems. The Unix zombie identity stops at process-table semantics and parent wait protocol. A stale record elsewhere may be analogous but is not a zombie process.

Examples

Applied / In Practice

A child exits and appears briefly as defunct before its parent immediately calls wait.

Mapped back: status handoff → The zombie preserves the completion result only until collection.

Applied / In Practice

A long-running parent repeatedly spawns children but never waits, filling process-table slots with defunct entries.

Mapped back: accumulation → Each dead child retains a small kernel record.

Applied / In Practice

A running child continues after its parent exits and is adopted by a system reaper.

Mapped back: boundary → It is an orphan, not a zombie.

Structural Tensions

T1 — Completion versus Accounting Persistence. Execution has ended, yet parent–child protocol requires a remaining identity and status.

Diagnostic: Distinguish liveness from existence of a process-table record.

T2 — Small Per-Record Cost versus Systemic Accumulation. One zombie uses little space, while many can exhaust PID or table capacity and signal a faulty parent.

Diagnostic: Measure count and parent ownership rather than treating one transient zombie as a crisis.

Structural–Framed Character

Termination, status, and reaping are structural kernel states; whether persistence is erroneous is operationally framed by duration and workload. A state designed for correctness becomes a leak only when the consumer fails.

Structural Core vs. Domain Accent

The skeleton is completed work whose acknowledgment record remains. Unix supplies PIDs, parent–child relation, exit status, wait, signals, and process tables. Those mechanisms define the zombie.

This entry is a kind of Process state.

  • Approved root. Frozen DAG placement is unparented.

  • Related — orphan process and wait system call. They provide the contrasting live state and the reaping mechanism.

Relationships to Other Abstractions

Local relationship map for Zombie processParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Zombie processDOMAINDomain-specific abstraction: Process state — is a kind ofProcess stateDOMAIN

Current abstraction Zombie process Domain-specific

Parents (1) — outgoing typed relations

  • Zombie process is a kind of Process state Domain-specific

    Zombie process is a domain-specific instance of process state under its frozen identity. The complete catalog already supplies this broader identity.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Zombie process sits in a moderately populated region (49th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Program Scope & Nesting Disciplines (10 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Orphan process. Tell: Remains alive after its parent terminates.
  • Hung process. Tell: Still exists as executing or blocked code.
  • Stopped process. Tell: Is suspended but can resume.
  • Daemon. Tell: A long-lived background process, not a terminated child record.

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Zombie_process (revision 1363503125).