Re: init's children list is long and slows reaping children.

Ingo Molnar
2007-04-06T20:21:35Z

* Oleg Nesterov <oleg@tv-sign.ru> wrote:

> Probably it is I who missed something :)
>
> But why can't we do both changes? I think it is just ugly to use init
> to reap the kernel thread. Ok, wait4() can find zombie quickly if we
> do the ->children split. But /sbin/init could be swapped out, we still
> need to deliver SIGCHLD, etc.
>
> And I personally agree with Linus, it is nice to hide the kernel
> threads from /sbin/init (or whatever) completely.

yeah, they should all be made auto-reap - nobody is really interested in
their wait4()-driven completion. (any completion they do is via other
mechanisms)

Ingo