[sr-dev] git:kamailio_3.0: core: use dlflags to load modules

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 1 13:51:23 CET 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 055915a558a485cda17c9bb1c8e43aca12d116b5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=055915a558a485cda17c9bb1c8e43aca12d116b5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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 b8db2c7..d5dc322 100644
--- a/sr_module.c
+++ b/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());




More information about the sr-dev mailing list