You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Paul Querna <ch...@force-elite.com> on 2005/03/13 09:28:13 UTC

Why doesn't DBM register Cleanups?

So, I have been hacking on adding features to mod_mbox:
http://tsunami.in.force-elite.com/httpd-dev/

I was expecting when my pool was cleared, that my DBM handler could 
close, and safely save my changes.  However, after beating my head on it 
for far too long, I looked in the DBM source, and found this:

...
     /* ### register a cleanup to close the DBM? */

     return APR_SUCCESS;
...

So, no cleanup was being run, and I understood why my code that expected 
this behavior was not working.  I added my own cleanups, and my code now 
works.  But, does anyone know *why* the DBM functions have never 
registered cleanups?  I can't come up with a good reason.

-Paul

Re: Why doesn't DBM register Cleanups?

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Sunday, March 13, 2005 12:28 AM -0800 Paul Querna 
<ch...@force-elite.com> wrote:

> So, I have been hacking on adding features to mod_mbox:
> http://tsunami.in.force-elite.com/httpd-dev/
>
> I was expecting when my pool was cleared, that my DBM handler could
> close, and safely save my changes.  However, after beating my head on it
> for far too long, I looked in the DBM source, and found this:

To make saves be explicit?  -- justin