Zombie: a child that has exited but whose entry remains in the process table because the parent has not yet called wait() to read its exit status; it uses no CPU or memory, only a table slot, and shows as Z (defunct) in ps. Fix by having the parent call wait or waitpid (or handle SIGCHLD); killing the zombie itself does nothing, you must fix or end the parent.
Orphan: a child whose parent has exited while it is still running; the init process (PID 1) adopts it and reaps it when it ends, so orphans are generally harmless.
Loading…