Browse code

core: use dlflags to load modules

- dlflags var used for dlopen function

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