Glenn MacGregor wrote:
> More on this. Thanks for all the help so far. This is not really
> socket related but here goes. I am fork & execing a process that runs
> prints to syslog and dies. That works fine, but if I do that and then
> do a ps I see the process name <defunct> in a zombie state. When I kill
> the parent all the defunct processes die as well. Do I need to
> "daemonize" the child with a couple of forks to stop this from
> happening?
The zombie will vanish as soon as the parent retrieves its exit status
with wait(), waitpid() etc. OTOH, if the parent terminates as soon as
it has fork()ed the child, the zombie will get cleaned up
automatically by init.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]