apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Changing the order of cleanup for some core objects
Date Wed, 23 Jul 2008 07:00:12 GMT
On Wed, 2008-07-23 at 08:56 +0200, Mladen Turk wrote:

> Cannot do that. Cleanups are LIFO. First cleanup registered is res_clean
> so it'll always be executed *last*.

I wasn't talking about res_clean.

> Socket cleanup is private, so
> cannot modify that.

When you create your socket with apr_socket_create(), there is a pool
argument there. If you hang a cleanup off it, it will run before close()
in socket_cleanup().


View raw message