From: "Justin Erenkrantz" <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 12:00 PM


> On Tue, Jul 17, 2001 at 11:26:55AM -0500, William A. Rowe, Jr. wrote:
> > But _unless_ they remain rooted to the top level pool, in 
> > apr_process_create 
> > they become orphaned, and their cleanups are never executed.  That isn't 
> > workable.
> 
> I disagree with this.  I gave my big long monologue on this on Sunday
> night.  In summary, since you can't cleanup the thread itself, why are 
> we cleaning up its memory?  -- justin

Because, otherwise, all resources (files, sockets, locks, etc) are not closed 
when
another thread forks.

There is a difference between a clean thread exit and cleaning up after a 
thread.
We can't do a clean thread exit.  We can clean up after one, if the resources 
are
apr_entities with properly registered cleanups.




Reply via email to