Everything About ___
Live briefing

Everything about Zombie process

Process that is not running, but is in the process table

On Unix and Unix-like computer operating systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table: it is a process in the "terminated state". This occurs for the child processes, where the entry is still needed to allow the parent process to read its child's exit status: once the exit status is read via the wait system call, the defunct process' entry is removed from the process table and it is said to be "reaped". A child process initially becomes defunct, only then being removed from the resource table. Under normal system operation, defunct processes are immediately waited on by their parent and then reaped by the system. Processes that stay defunct for a long time are usually an error and can cause a resource leak. Generally, the only kernel resource they occupy is the process table entry, their process ID. However, defuncts can also hold buffers open, consuming memory. Defunct processes can hold handles to file descriptors, which prevents the space for those files from being available to the filesystem. This effect can be seen by a difference between du and df. While du may show a large amount of free disk space, df will show a full partition. If the defuncts are not cleaned, this can fill the root partition and crash the system. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Zombie processA 5-minute orientation
  2. Pick up a classic book: Contemporary MusiciansThe most-reprinted book on the subject
  3. Go sideways: Child processA closely related topic
  4. Go sideways: Fork–execA closely related topic

📖 Definitions

Noun A child process that has terminated but is still listed in the process table, having not yet been reaped by its parent process.

🗂️ The subject at a glance

  1. Overview
  2. Example

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics