You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@locus.apache.org on 2000/12/03 01:06:48 UTC
cvs commit: apr/misc/unix start.c
rbb 00/12/02 16:06:48
Modified: misc/unix start.c
Log:
When creating a sub-pool, we should inherit the parent pool's apr_abort
function
Revision Changes Path
1.42 +6 -2 apr/misc/unix/start.c
Index: start.c
===================================================================
RCS file: /home/cvs/apr/misc/unix/start.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- start.c 2000/11/29 21:16:10 1.41
+++ start.c 2000/12/03 00:06:48 1.42
@@ -75,8 +75,12 @@
}
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;
}