Explorar o código

core: use dlflags to load modules

- dlflags var used for dlopen function
(cherry picked from commit 055915a558a485cda17c9bb1c8e43aca12d116b5)
Daniel-Constantin Mierla %!s(int64=15) %!d(string=hai) anos
pai
achega
b549cf4aad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());