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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 1af0bd744b955e7618085b12d2a9911e677af2f8
URL: https://github.com/kamailio/kamailio/commit/1af0bd744b955e7618085b12d2a9911e677af2f8

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
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);
 }
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev