summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>2008-08-07 06:35:36 +0000
committermturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>2008-08-07 06:35:36 +0000
commit8ec477d5f39aaf4afca7d7040e7cb3ec074064d8 (patch)
treedcba2c2bdd02f76038908d51d4ae723023cf4051
parenta0a88faf0f58892545c5dc0f04b25f21a49853c7 (diff)
downloadlibapr-util-8ec477d5f39aaf4afca7d7040e7cb3ec074064d8.tar.gz
Use default pool cleanup order for reslist create.
Revert r677505 and r677523. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@683524 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--misc/apr_reslist.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c
index ef452838..3b6d630a 100644
--- a/misc/apr_reslist.c
+++ b/misc/apr_reslist.c
@@ -310,14 +310,8 @@ APU_DECLARE(apr_status_t) apr_reslist_create(apr_reslist_t **reslist,
return rv;
}
- /* Register a pool pre_cleanup.
- * This will ensure that reslist_cleanup is run BEFORE
- * any of the eventual child pools of this pool.
- * If an child pool was created inside apr_reslist_destructor,
- * this child pool can safely call apr_pool_destroy inside
- * apr_reslist_destructor thus safely detaching himself.
- */
- apr_pool_pre_cleanup_register(rl->pool, rl, reslist_cleanup);
+ apr_pool_cleanup_register(rl->pool, rl, reslist_cleanup,
+ apr_pool_cleanup_null);
*reslist = rl;