[sr-dev] git:master:1af0bd74: app_python3: init cfg vars framework in child init

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 20 11:19:28 CEST 2018


Module: kamailio
Branch: master
Commit: 1af0bd744b955e7618085b12d2a9911e677af2f8
URL: https://github.com/kamailio/kamailio/commit/1af0bd744b955e7618085b12d2a9911e677af2f8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-08-20T11:12:34+02:00

app_python3: init cfg vars framework in child init

---

Modified: src/modules/app_python3/app_python3_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1af0bd744b955e7618085b12d2a9911e677af2f8.diff
Patch: https://github.com/kamailio/kamailio/commit/1af0bd744b955e7618085b12d2a9911e677af2f8.patch

---

diff --git a/src/modules/app_python3/app_python3_mod.c b/src/modules/app_python3/app_python3_mod.c
index 5d45f3f355..19dfe0aa87 100644
--- a/src/modules/app_python3/app_python3_mod.c
+++ b/src/modules/app_python3/app_python3_mod.c
@@ -26,6 +26,7 @@
 #include "../../core/sr_module.h"
 #include "../../core/mod_fix.h"
 #include "../../core/kemi.h"
+#include "../../core/cfg/cfg_struct.h"
 
 #include "python_exec.h"
 #include "python_iface.h"
@@ -179,6 +180,9 @@ static int child_init(int rank)
 	}
 	_apy_process_rank = rank;
 	PyOS_AfterFork();
+	if (cfg_child_init()) {
+		return -1;
+	}
 	return apy_init_script(rank);
 }
 




More information about the sr-dev mailing list