apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apr/misc/unix start.c
Date Sun, 03 Dec 2000 00:06:48 GMT
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;
   }
  
  
  

Mime
View raw message