Selaa lähdekoodia

core: use dlflags to load modules

- dlflags var used for dlopen function
Daniel-Constantin Mierla 15 vuotta sitten
vanhempi
commit
055915a558
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      sr_module.c

+ 1 - 1
sr_module.c

@@ -384,7 +384,7 @@ int load_module(char* mod_path)
 	retries=2;
 	dlflags=RTLD_NOW;
 reload:
-	handle=dlopen(path, RTLD_NOW); /* resolve all symbols now */
+	handle=dlopen(path, dlflags); /* resolve all symbols now */
 	if (handle==0){
 		LOG(L_ERR, "ERROR: load_module: could not open module <%s>: %s\n",
 			path, dlerror());