[cs631apue] Questions about clean zombie children processes

Hongyi Shen hshen4 at stevens.edu
Sat Nov 2 00:52:49 EDT 2013


Hello everyone:

After some searching, there seems to be two ways to kill exited child
processes.
#1. use *signal()* catch SIGCHLD with *waitpid() .  *(or fork 2 times)
#2. terminate them by shell commands.

here is my question:
Which way does real world server do with this problem?
If it is #1, when to *signal() *the zombies* *?
(I assume that should be each time new process forked, it check whether
SIGCHLD exist and then handle them)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131102/c7914571/attachment.html>


More information about the cs631apue mailing list