httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: RTLD_GLOBAL for DSO?
Date Fri, 10 Jul 1998 17:44:03 GMT

On Fri, 10 Jul 1998, Jon Teichrow wrote:

> (e.g. LoadGlobalModule as a possible solution,
> or hacking in "|RTLD_GLOBAL" in the call
> to dlopen).  Does anyone know of any other

Since this is a property of the module it's not wise to ask the user to
know whether to use LoadModule or LoadGlobalModule.  Instead, if we need
both functionalities, I suggest adding this to httpd.h:

#define AP_REQUIRE_GLOBAL int ap_use_rtld_global;

and then place an AP_REQUIRE_GLOBAL into the modules which require it.

mod_so can use dlsym to see if that symbol is defined (the value is
meaningless -- it's either there or not there).  If it's defined, then
reload the module with RTLD_GLOBAL.

Or something like that.


View raw message