APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2004/02/27 zombie


© February 2004 Tony Lawrence

A process whose parent dies before it did.

Zombies result from errors or sloppy programming. A process forks, and execs a new process onto the fork. The original process is the parent of the old process; you can see that in a "ps" listing. If that parent now dies or exits deliberately, the child process continues to run. But when it dies, it is supposed to report its exit status to its parent - if that parent were alive, it is supposed to issue a "wait()" on the child to collect that status. If the parent is dead, it's not going to be doing that, so init inherits the process and shows it as being in a "zombie" state. Init will clean everything up eventually; just give it time.

See Understanding "Kill"


Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> zombie process


Inexpensive and informative Apple related e-books:

iOS 10: A Take Control Crash Course

Take Control of Automating Your Mac

iOS 8: A Take Control Crash Course

Take Control of Preview

Take Control of Pages




More Articles by © Tony Lawrence




Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





There are two ways to write error-free programs; only the third one works. (Alan Perlis)




Linux posts

Troubleshooting posts


This post tagged:

Kernel

UnixWords



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode