Browse code

core: use dlflags to load modules

- dlflags var used for dlopen function
(cherry picked from commit 055915a558a485cda17c9bb1c8e43aca12d116b5)

Daniel-Constantin Mierla authored on 30/01/2010 16:02:37
Showing 1 changed files
... ...
@@ -384,7 +384,7 @@ int load_module(char* mod_path)
384 384
 	retries=2;
385 385
 	dlflags=RTLD_NOW;
386 386
 reload:
387
-	handle=dlopen(path, RTLD_NOW); /* resolve all symbols now */
387
+	handle=dlopen(path, dlflags); /* resolve all symbols now */
388 388
 	if (handle==0){
389 389
 		LOG(L_ERR, "ERROR: load_module: could not open module <%s>: %s\n",
390 390
 			path, dlerror());