From 8de25d41416cf28a0126d174da1fda0d66ff4a2c Mon Sep 17 00:00:00 2001 From: Lon Hohberger Date: Thu, 17 Sep 2009 15:29:14 -0400 Subject: [PATCH] Use immediate resolution of symbols This will prevent crashes mid-execution. Signed-off-by: Lon Hohberger --- server/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugin.c b/server/plugin.c index fd88c4c..86184e0 100644 --- a/server/plugin.c +++ b/server/plugin.c @@ -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;