apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Failing apr_pool_create in case apr_pools_initialized == 0
Date Tue, 11 Dec 2007 11:45:17 GMT
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