Module: kamailio
Branch: master
Commit: 1af0bd744b955e7618085b12d2a9911e677af2f8
URL:
https://github.com/kamailio/kamailio/commit/1af0bd744b955e7618085b12d2a9911…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/1af0bd744b955e7618085b12d2a9911…
Patch:
https://github.com/kamailio/kamailio/commit/1af0bd744b955e7618085b12d2a9911…
---
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);
}