I think that is reasonable, as long as that complexity is hidden in libc.
>
> >> It would also be handy to have a "disown" call which had the effect of
> >> immediately reparenting the target process to init. Currently "detached
> >> threads" have to be waited for too.
> >
> >This already exists. Do prctl(PR_SET_DEATHSIG, SOME_NEW_SIGNAL) in the child
> >and ignore that signal in the parent (at least it should work in theory,
> >I haven't tested it)
>
> I think if you do that then the zombie never gets reaped.
True, it needs SA_NOCLDWAIT too (which does not work ATM)
-Andi
-- This is like TV. I don't like TV.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/