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:
parent
f0872cbdeb
commit
8de25d4141
@ -293,7 +293,7 @@ plugin_load(const char *libpath)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("Loading plugin from %s\n", libpath);
|
printf("Loading plugin from %s\n", libpath);
|
||||||
#endif
|
#endif
|
||||||
handle = dlopen(libpath, RTLD_LAZY);
|
handle = dlopen(libpath, RTLD_NOW);
|
||||||
if (!handle) {
|
if (!handle) {
|
||||||
errno = ELIBACC;
|
errno = ELIBACC;
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user