1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 17:06:37 +02:00

Use RTLD_NOW when loading modules to resolve all symbols immediately.

This prevents modules with unresolved symbols from loading instead
of loading and crashing later.
This commit is contained in:
Adam
2012-09-30 04:53:49 -04:00
parent 3838eb1f05
commit 0ea5e57298
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
}
dlerror();
void *handle = dlopen(pbuf.c_str(), RTLD_LAZY);
void *handle = dlopen(pbuf.c_str(), RTLD_NOW);
const char *err = dlerror();
if (!handle && err && *err)
{