You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2005/05/27 18:38:09 UTC

cvs commit: jakarta-tomcat-connectors/jni/native/src pool.c

mturk       2005/05/27 09:38:09

  Modified:    jni/native/src pool.c
  Log:
  Make sure our global pool is accessor for all the pools.
  
  Revision  Changes    Path
  1.5       +7 -2      jakarta-tomcat-connectors/jni/native/src/pool.c
  
  Index: pool.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/pool.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- pool.c	24 May 2005 09:24:40 -0000	1.4
  +++ pool.c	27 May 2005 16:38:09 -0000	1.5
  @@ -18,11 +18,13 @@
    * @author Mladen Turk
    * @version $Revision$, $Date$
    */
  - 
  +
   #include "apr.h"
   #include "apr_pools.h"
   #include "tcn.h"
   
  +extern apr_pool_t *tcn_global_pool;
  +
   static apr_status_t generic_pool_cleanup(void *data)
   {
       apr_status_t rv = APR_SUCCESS;
  @@ -45,6 +47,9 @@
       apr_pool_t *n;
   
       UNREFERENCED(o);
  +    /* Make sure our global pool is accessor for all pools */
  +    if (p == NULL)
  +        p = tcn_global_pool;
       TCN_THROW_IF_ERR(apr_pool_create(&n, p), n);
   cleanup:
       return P2J(n);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org