Messages in this thread | | | Date | Wed, 11 Feb 1998 14:31:53 +1300 | From | Chris Wedgwood <> | Subject | Re: Zombie processes |
| |
Date: Tue, 10 Feb 1998 17:44:43 -0500 (EST) From: Spirilis <spirilis@mindmeld.dyn.ml.org> To: linux-kernel@vger.rutgers.edu Subject: Zombie processes Message-ID: <Pine.LNX.3.96.980210174329.7261A-100000@mindmeld.dyn.ml.org>
Hello, I would like some advice on the issue of zombie processes. Primarily, what causes them? How can you get rid of them? Basically, what ARE they? Any reply is greatly appreciated!
Thanks -Spirilis
When a process terminates, it will hang around as a zombie (although it's resources have been freed by this time) until it is reaped by a parent process.
This is done when the parent calls wait, wait3 or wait4. (Hmm - why is there no wait2?). The value returned to the parent will tell how the process terminated and the exit code.
Check the man pages for wait, etc. You might also want to check signal(7) for details about SIGCHLD and perhaps sigaction(2), etc.
-Chris
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |