[sr-dev] git:4.3:105a17db: kazoo: init cfg framework in child processes

Luis Azedo luis at 2600hz.com
Sat Aug 6 14:52:24 CEST 2016


Module: kamailio
Branch: 4.3
Commit: 105a17db0dfabedfe13a65c9b855ad25668bec37
URL: https://github.com/kamailio/kamailio/commit/105a17db0dfabedfe13a65c9b855ad25668bec37

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Luis Azedo <luis at 2600hz.com>
Date: 2016-08-06T13:05:45+01:00

kazoo: init cfg framework in child processes

fixes crashing since commit c7bec3320f6907c4edd8416a5e5cfa89b071a411
(cherry picked from commit d63869cd31a0ac0a61f218b3144de7a9f400e0ae)

---

Modified: modules/kazoo/kazoo.c

---

Diff:  https://github.com/kamailio/kamailio/commit/105a17db0dfabedfe13a65c9b855ad25668bec37.diff
Patch: https://github.com/kamailio/kamailio/commit/105a17db0dfabedfe13a65c9b855ad25668bec37.patch

---

diff --git a/modules/kazoo/kazoo.c b/modules/kazoo/kazoo.c
index e8b6749..5aa5709 100644
--- a/modules/kazoo/kazoo.c
+++ b/modules/kazoo/kazoo.c
@@ -324,6 +324,7 @@ static int mod_child_init(int rank)
 		if (pid<0)
 			return -1; /* error */
 		if(pid==0){
+            if (cfg_child_init()) return -1;
 			kz_amqp_consumer_proc(1);
 		}
 		else {
@@ -331,6 +332,7 @@ static int mod_child_init(int rank)
 			if (pid<0)
 				return -1; /* error */
 			if(pid==0){
+                if (cfg_child_init()) return -1;
 				kz_amqp_publisher_proc(0);
 			}
 			else {
@@ -338,6 +340,7 @@ static int mod_child_init(int rank)
 				if (pid<0)
 					return -1; /* error */
 				if(pid==0){
+                    if (cfg_child_init()) return -1;
 					kz_amqp_timeout_proc(2);
 				}
 				else {
@@ -346,6 +349,7 @@ static int mod_child_init(int rank)
 						if (pid<0)
 							return -1; /* error */
 						if(pid==0){
+                            if (cfg_child_init()) return -1;
 							mod_consumer_proc(i+3);
 						}
 					}




More information about the sr-dev mailing list