apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bojan Smojver" <bo...@rexursive.com>
Subject Re: Changing the order of cleanup for some core objects
Date Mon, 21 Jul 2008 11:16:53 GMT
Quoting "Mladen Turk" <mturk@apache.org>:

> I still don't know how to solve that problem effectively, so
> any ideas are welcome.

How about we have apr_pool_destroy_safe(). We give it two arguments:

- pool to kill
- root pool to start searching from (NULL means global pool)

Then we first check if the pool we are trying to destroy is still  
there. If so, we whack it. If not, we just return success.

Brute force, I know...

-- 
Bojan

Mime
View raw message