apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Terminating threads in a process, WAS: RE: [PATCH] Problems with MPM threaded
Date Tue, 17 Jul 2001 17:13:08 GMT
From: "Justin Erenkrantz" <jerenkrantz@ebuilt.com>
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.





Mime
View raw message