apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <s.stri...@striker.nl>
Subject Re: Failing apr_pool_create in case apr_pools_initialized == 0
Date Tue, 11 Dec 2007 17:00:44 GMT
After apr_terminate() when calling any function, the behaviour is undefined.
This is as expected.  I don't see a need to protect against that.

Sander

On 12/11/07, Mladen Turk <mturk@apache.org> wrote:
> Hi,
>
> I'd like to make sure the apr_pool_create(_ex)
> returns error in case apr was terminated, meaning
> apr_pool_terminate() was called and apr_pools_initialized is 0.
>
> Seems we are missing that check in apr_pool_create_ex,
> and I think APR_ENOMEM is correct error code we could
> return in that case (or perhaps APR_EINVAL)
>
> Comments?
>
> Regards,
> Mladen
>
>

Mime
View raw message