IT lexicon › Infra & Ops › Zombie process

Zombie process

Infra & Ops På svenska → Updated: 2026-07-31

A process that has exited but whose exit status nobody has collected — it is dead, yet still occupies a slot in the process table.

When a process exits, all its memory is freed immediately. What remains is an entry with the PID and exit code, waiting for the parent to call wait() and read it. Only then does the entry disappear. In ps the state shows as Z or defunct.

A single zombie is harmless and short-lived. Trouble arrives when a parent forgets to collect the status and keeps spawning children — the process table then fills until no new PIDs remain. If the parent dies first, the child is adopted by init, which reaps automatically. That is exactly what is missing in containers where the application runs as PID 1 without expecting the role, and why a minimal init such as tini is often added.

← Back to the lexicon