Browse Source

core: use dlflags to load modules

- dlflags var used for dlopen function
Daniel-Constantin Mierla 15 năm trước cách đây
mục cha
commit
f4d2f91c9e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      sr_module.c

+ 1 - 1
sr_module.c

@@ -390,7 +390,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());