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

Re: garbage collection thread zombies



On Fri, 2004-03-12 at 13:08 -0600, J B wrote:
> The problem appears to be that the kernel thread is started before the init 
> process is exec'd, and it's parent task is not set correctly so when init 
> goes to reap it, the wait4(...) call returns successfully, but doesn't 
> actually remove the zombie.  I am using a 2.4 kernel, but the problem 
> probably occurs in 2.6 as well.

Hmmm. Isn't this a problem for _all_ kernel threads which are started
before init but which may die later? Perhaps a more generic solution
should be adopted than to make them all reparent themselves _again_ on
exit?

-- 
dwmw2


To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com