summaryrefslogtreecommitdiff
path: root/include/apr_pools.h
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2009-02-23 10:48:37 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2009-02-23 10:48:37 +0000
commit79cbdd1891d8c3c86c4e2aeb79337629c999c1ab (patch)
treeb0ce3001db2438fb3751596f92ca03a7b6002d85 /include/apr_pools.h
parentbc87ff12de98f3d83663ddb9b4045d5072bf116e (diff)
downloadlibapr-79cbdd1891d8c3c86c4e2aeb79337629c999c1ab.tar.gz
* include/apr_pools.h (apr_pool_create_unmanaged_ex): ... is considered
harmful; child cleanups don't work. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@746955 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_pools.h')
-rw-r--r--include/apr_pools.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/apr_pools.h b/include/apr_pools.h
index 5f0b36732..071ff685c 100644
--- a/include/apr_pools.h
+++ b/include/apr_pools.h
@@ -207,6 +207,10 @@ APR_DECLARE(apr_status_t) apr_pool_create_core_ex(apr_pool_t **newpool,
* destroyed by calling apr_pool_destroy, to prevent memory leaks.
* Use of this function is discouraged, think twice about whether
* you really really need it.
+ * @warning Any child cleanups registered against the new pool, or
+ * against sub-pools thereof, will not be executed during an
+ * invocation of apr_proc_create(), so resources created in an
+ * "unmanaged" pool heirarchy will leak to child processes.
*/
APR_DECLARE(apr_status_t) apr_pool_create_unmanaged_ex(apr_pool_t **newpool,
apr_abortfunc_t abort_fn,