Module: sip-router
Branch: master
Commit: f4d2f91c9e3522ab92694ac37c4ee58ee7572c96
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f4d2f91…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Jan 30 17:02:37 2010 +0100
core: use dlflags to load modules
- dlflags var used for dlopen function
---
sr_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sr_module.c b/sr_module.c
index a022082..b0c6c20 100644
--- a/sr_module.c
+++ b/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());