[sr-dev] git:tmp/k3.0_sr_backports: core: use dlflags to load modules

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Feb 3 23:05:55 CET 2010


Module: sip-router
Branch: tmp/k3.0_sr_backports
Commit: b549cf4aad129e403bbf63bb5591b4dfce4c3657
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b549cf4aad129e403bbf63bb5591b4dfce4c3657

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Sat Jan 30 17:02:37 2010 +0100

core: use dlflags to load modules

- dlflags var used for dlopen function
(cherry picked from commit 055915a558a485cda17c9bb1c8e43aca12d116b5)

---

 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