httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@covalent.net>
Subject Re: 1.3 & c++ DSO
Date Wed, 28 Feb 2001 23:36:48 GMT

All he needs to do is a kill_cleanup during initialization for his module.
It is relatively easy to find (in the code) which cleanup is being used.

Ryan

On Wed, 28 Feb 2001, Chuck Murcko wrote:

> A friend of mine has a problem:
>
> "we have an Apache module that we use here.
> It uses c++.
> so, on FreeBSD, the libstdc++.so registers an atexit routine to perform cleanup.
> we don't link stdc++ statically instead we use LoadFile.
>
> when apache loads the file it registers a cleanup routine.
> this cleanup happens before exit. when exit is called the atexit routine (
> which is now unloaded) gets called. bang!"
>
> Does he need to write LoadLibrary() so his module just never unloads, or am I missing
some trick he can do?
>
> Chuck
> Chuck Murcko
> Topsail Group
> http://www.topsail.org/
>


_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message