浏览代码

core: use dlflags to load modules

- dlflags var used for dlopen function
Daniel-Constantin Mierla 15 年之前
父节点
当前提交
055915a558
共有 1 个文件被更改,包括 1 次插入1 次删除
  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());