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