[Pkg-voip-commits] [janus] 117/163: Changed flags to dlopen to load modules

Jonas Smedegaard dr at jones.dk
Sat Oct 28 01:22:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.5-1
in repository janus.

commit 18e7946d0b86330266d8714fbb2f3d60c5c032f0
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Mon Sep 25 15:11:56 2017 +0200

    Changed flags to dlopen to load modules
---
 janus.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/janus.c b/janus.c
index c44d6cb..958d0d2 100644
--- a/janus.c
+++ b/janus.c
@@ -3980,7 +3980,7 @@ gint main(int argc, char *argv[])
 				JANUS_LOG(LOG_INFO, "Loading event handler plugin '%s'...\n", eventent->d_name);
 				memset(eventpath, 0, 1024);
 				g_snprintf(eventpath, 1024, "%s/%s", path, eventent->d_name);
-				void *event = dlopen(eventpath, RTLD_LAZY);
+				void *event = dlopen(eventpath, RTLD_NOW | RTLD_GLOBAL);
 				if (!event) {
 					JANUS_LOG(LOG_ERR, "\tCouldn't load event handler plugin '%s': %s\n", eventent->d_name, dlerror());
 				} else {
@@ -4108,7 +4108,7 @@ gint main(int argc, char *argv[])
 		JANUS_LOG(LOG_INFO, "Loading plugin '%s'...\n", pluginent->d_name);
 		memset(pluginpath, 0, 1024);
 		g_snprintf(pluginpath, 1024, "%s/%s", path, pluginent->d_name);
-		void *plugin = dlopen(pluginpath, RTLD_LOCAL | RTLD_LAZY);
+		void *plugin = dlopen(pluginpath, RTLD_NOW | RTLD_GLOBAL);
 		if (!plugin) {
 			JANUS_LOG(LOG_ERR, "\tCouldn't load plugin '%s': %s\n", pluginent->d_name, dlerror());
 		} else {
@@ -4236,7 +4236,7 @@ gint main(int argc, char *argv[])
 		JANUS_LOG(LOG_INFO, "Loading transport plugin '%s'...\n", transportent->d_name);
 		memset(transportpath, 0, 1024);
 		g_snprintf(transportpath, 1024, "%s/%s", path, transportent->d_name);
-		void *transport = dlopen(transportpath, RTLD_LOCAL | RTLD_LAZY);
+		void *transport = dlopen(transportpath, RTLD_NOW | RTLD_GLOBAL);
 		if (!transport) {
 			JANUS_LOG(LOG_ERR, "\tCouldn't load transport plugin '%s': %s\n", transportent->d_name, dlerror());
 		} else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list