Use RTLD_LOCAL instead of RTLD_GLOBAL when reading module descriptions

This might save some work for the libc and at least I can't see
how this would break anything.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1279 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-12-06 14:39:48 +00:00
parent 66a6f91116
commit da4181617e

View File

@@ -902,7 +902,7 @@ bool CModules::GetModInfo(CModInfo& ModInfo, const CString& sModule) {
return false;
}
unsigned int uDLFlags = RTLD_LAZY | RTLD_GLOBAL;
unsigned int uDLFlags = RTLD_LAZY | RTLD_LOCAL;
void* p = dlopen((sModPath).c_str(), uDLFlags);