[cs631apue] Questions about clean zombie children processes
yluo4
yluo4 at stevens.edu
Sat Nov 2 11:50:21 EDT 2013
I don't think we need to handle the zombies. Daemon will kill parent
first, so when children exit, it will not be zombies.
Thanks,
Yulong
On 11/02/2013 12:52 AM, Hongyi Shen wrote:
> 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)
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
More information about the cs631apue
mailing list