[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programming questions. topics process , signals , IPC



Nezer.Zaidenberg@ecitele.com writes:

 > how can I convince child process not to send SIGCHLD to the father (and thus not
 > remain zombie)?

You don't do that, instead you create a SIGCHLD handler in your father 
process that just wait()s on the child process; the wait() doesn't
block of course but immediately returns and releases the child process 
from its zombie status.


-- 
Alex Shnitman                            | http://www.debian.org
alexsh@hectic.net, alexsh@linux.org.il   +-----------------------  
http://alexsh.hectic.net    UIN 188956    PGP key on web page
       E1 F2 7B 6C A0 31 80 28  63 B8 02 BA 65 C7 8B BA

"Everything that can be invented has been invented."
	-- Charles Duell, head of the U.S. Patent Office, 1899