[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: abort functions in pools

From: Joe Orton <joe_at_light.plus.com>
Date: 2000-09-17 12:15:09 CEST

On Thu, Sep 14, 2000 at 03:06:38PM -0500, Jim Blandy wrote:
> Shouldn't apr_make_sub_pool set new_pool->apr_abort to its `apr_abort'
> argument, instead of leaving it zero?
>
> Is there any approved way to get or set an existing pool's abort
> function?

There is 'apr_set_abort' which does the latter, documented in
apr_general.h (not apr_pools.h, of course), implemented in
misc/unix/start.c.

> I would kind of like to have subpools inherit their parent
> pools' abort function, but I don't think I can do that.

Apache 2 doesn't seem to use apr_make_sub_pool, it uses apr_create_pool
instead. The comment for apr_create_pool (in apr_general.h, not
apr_pools.h) says:

 "the new pool will inherit all of it's parent pool's attributes,"

Yet, the apr_create_pool definition in misc/unix/start.c does:

    newpool->apr_abort = NULL;

before returning.

(Despite the name, misc/unix/start.c seems to be used by the Win32 +
BeOS ports of APR too, and is not much to do with "starting" either.)

joe
Received on Sat Oct 21 14:36:08 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.