Use immediate resolution of symbols

This will prevent crashes mid-execution.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2009-09-17 15:29:14 -04:00
parent f0872cbdeb
commit 8de25d4141

View File

@ -293,7 +293,7 @@ plugin_load(const char *libpath)
#ifdef DEBUG
printf("Loading plugin from %s\n", libpath);
#endif
handle = dlopen(libpath, RTLD_LAZY);
handle = dlopen(libpath, RTLD_NOW);
if (!handle) {
errno = ELIBACC;
return -1;