A zombie process is a process awaiting collection by a parent. To clean them up the parent process reaps the child with the wait(2) syscall. Orphaned processes are reaped by init.