On Tue, Jul 17, 2001 at 12:13:08PM -0500, William A. Rowe, Jr. wrote: > 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.
But, if the thread exits cleanly by calling apr_thread_exit() or has its own private SMS (I don't care which, but I think storing the SMS in the apr_thread_t object is a bit unclean), it'll return all of its resources with properly registered cleanups when the per-thread SMS is destroyed as the thread exits cleanly. Again, I'm just not seeing what the problem is here. -- justin