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

Re: Failure to kill pid



John,
	When a child is killed, the parent must wait() on the child before
the child is cleared from the process table.  IIRC the easiest way to do
this is to install a signal handler for SIGCHLD and then have it call
wait().  This should clear out any zombies created.
	-Chris

-- 
lansdoct@cs.alfred.edu
"If I had had more time I would have not written you at all." - Pascal
Linux Programs: http://cs.alfred.edu/~lansdoct/linux/
Linux - Get there. Today.
Evil Overlord Quote of the Day:
12. One of my advisors will be an average five-year-old child. Any flaws in
my plan that he is able to spot will be corrected before implementation.



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