diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-03 00:06:48 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-03 00:06:48 +0000 |
commit | 8e6ceb4e322ed48ce16e1028139de781033a4a3d (patch) | |
tree | 96001dd900aab2e5910bdb47745c4fad9ebd9160 /misc | |
parent | b2dc46a56583088897acf3384bb9a15435006214 (diff) | |
download | libapr-8e6ceb4e322ed48ce16e1028139de781033a4a3d.tar.gz |
When creating a sub-pool, we should inherit the parent pool's apr_abort
function
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r-- | misc/unix/start.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/unix/start.c b/misc/unix/start.c index 62db9a2ba..e9eedb3d8 100644 --- a/misc/unix/start.c +++ b/misc/unix/start.c @@ -75,8 +75,12 @@ apr_status_t apr_create_pool(apr_pool_t **newcont, apr_pool_t *cont) } newpool->prog_data = NULL; - newpool->apr_abort = NULL; - + if (cont) { + newpool->apr_abort = cont->apr_abort; + } + else { + newpool->apr_abort = NULL; + } *newcont = newpool; return APR_SUCCESS; } |