Module: kamailio
Branch: master
Commit: 11e918e1bb8cd1fce4ead00cc532669618b539ba
URL:
https://github.com/kamailio/kamailio/commit/11e918e1bb8cd1fce4ead00cc532669…
Author: AntonyA <ascanio.alba7(a)gmail.com>
Committer: AnthonyA <ascanio.alba7(a)gmail.com>
Date: 2018-03-10T10:41:31+08:00
app_python: call PyOS_AfterFork() in child
---
Modified: src/modules/app_python/app_python_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/11e918e1bb8cd1fce4ead00cc532669…
Patch:
https://github.com/kamailio/kamailio/commit/11e918e1bb8cd1fce4ead00cc532669…
---
diff --git a/src/modules/app_python/app_python_mod.c
b/src/modules/app_python/app_python_mod.c
index 98738ee66c..3f5463bd0a 100644
--- a/src/modules/app_python/app_python_mod.c
+++ b/src/modules/app_python/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);
}