Re: [patch] exit_free(), 2.5.31-A0

Linus Torvalds (torvalds@transmeta.com)
Tue, 13 Aug 2002 11:17:10 -0700 (PDT)


On Tue, 13 Aug 2002, Ingo Molnar wrote:
> >
> > That still doesn't make it any les crap: because any thread that exits
> > without calling the "magic exit-flag interface" will then silently be
> > lost, with no information left around anywhere.
>
> that should be a pretty rare occurance: with the upcoming signals patch
> any segmentation fault zaps all threads and does a proper (and
> deadlock-free) multithreaded coredump.

That still doesn't change the fact that the interface is broken
_by_design_.

If the parent wants to get notified on child death, it should damn well
get notified on child death. Not "in case the child exists politely".

We don't depend on processes calling "exit()" to clean up all the stuff
they left behind. The VM gets cleaned up even for bad processes.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/