Module: kamailio
Branch: master
Commit: 60816e1eb9f83fbe4803f1096fdb15e3be390594
URL:
https://github.com/kamailio/kamailio/commit/60816e1eb9f83fbe4803f1096fdb15e…
Author: AntonyA <ascanio.alba7(a)gmail.com>
Committer: AnthonyA <ascanio.alba7(a)gmail.com>
Date: 2018-03-10T10:41:31+08:00
app_python3: call PyOS_AfterFork() in child
---
Modified: src/modules/app_python3/app_python_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/60816e1eb9f83fbe4803f1096fdb15e…
Patch:
https://github.com/kamailio/kamailio/commit/60816e1eb9f83fbe4803f1096fdb15e…
---
diff --git a/src/modules/app_python3/app_python_mod.c
b/src/modules/app_python3/app_python_mod.c
index c3229b181d..c6f1098e60 100644
--- a/src/modules/app_python3/app_python_mod.c
+++ b/src/modules/app_python3/app_python_mod.c
@@ -175,6 +175,7 @@ static int mod_init(void)
static int child_init(int rank)
{
_apy_process_rank = rank;
+ PyOS_AfterFork();
return apy_init_script(rank);
}