<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Increase largest version of GCC detected to 11 from 10.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2917
-- Commit Summary --
* <a href="https://github.com/kamailio/kamailio/pull/2917/commits/4d11948402ae315c94ff…">build: detect GCC 11</a>
-- File Changes --
M src/Makefile.defs (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2917.patchhttps://github.com/kamailio/kamailio/pull/2917.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2917
Module: kamailio
Branch: 5.4
Commit: d84a89dba261d7a75ec35125174fe6723cf13295
URL: https://github.com/kamailio/kamailio/commit/d84a89dba261d7a75ec35125174fe67…
Author: Anthony Alba <ascanio.alba7(a)gmail.com>
Committer: Anthony Alba <ascanio.alba7(a)gmail.com>
Date: 2021-11-05T18:17:36+08:00
app_python3: for Python >= 3.7 call pre-fork hook
(cherry picked from commit 138ef5630402448ea2643097a3d25d4dcead6d70)
---
Modified: src/modules/app_python3/app_python3_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/d84a89dba261d7a75ec35125174fe67…
Patch: https://github.com/kamailio/kamailio/commit/d84a89dba261d7a75ec35125174fe67…
---
diff --git a/src/modules/app_python3/app_python3_mod.c b/src/modules/app_python3/app_python3_mod.c
index 0ce93b71cd..8ec252039c 100644
--- a/src/modules/app_python3/app_python3_mod.c
+++ b/src/modules/app_python3/app_python3_mod.c
@@ -175,6 +175,17 @@ static int mod_init(void)
static int child_init(int rank)
{
if(rank==PROC_INIT) {
+ /*
+ * this is called before any process is forked
+ * so the Python internal state handler
+ * should be called now.
+ *
+ * TODO: is PyOS_AfterFork_Parent() necesary
+ * in the main process?
+ */
+#if PY_VERSION_HEX >= 0x03070000
+ PyOS_BeforeFork() ;
+#endif
return 0;
}
_apy_process_rank = rank;
Module: kamailio
Branch: 5.5
Commit: 2b10b50518950246ad3a224b13e9817b00877a90
URL: https://github.com/kamailio/kamailio/commit/2b10b50518950246ad3a224b13e9817…
Author: Anthony Alba <ascanio.alba7(a)gmail.com>
Committer: Anthony Alba <ascanio.alba7(a)gmail.com>
Date: 2021-11-05T18:13:36+08:00
app_python3: for Python >= 3.7 call pre-fork hook
(cherry picked from commit 138ef5630402448ea2643097a3d25d4dcead6d70)
---
Modified: src/modules/app_python3/app_python3_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/2b10b50518950246ad3a224b13e9817…
Patch: https://github.com/kamailio/kamailio/commit/2b10b50518950246ad3a224b13e9817…
---
diff --git a/src/modules/app_python3/app_python3_mod.c b/src/modules/app_python3/app_python3_mod.c
index 0ce93b71cd..8ec252039c 100644
--- a/src/modules/app_python3/app_python3_mod.c
+++ b/src/modules/app_python3/app_python3_mod.c
@@ -175,6 +175,17 @@ static int mod_init(void)
static int child_init(int rank)
{
if(rank==PROC_INIT) {
+ /*
+ * this is called before any process is forked
+ * so the Python internal state handler
+ * should be called now.
+ *
+ * TODO: is PyOS_AfterFork_Parent() necesary
+ * in the main process?
+ */
+#if PY_VERSION_HEX >= 0x03070000
+ PyOS_BeforeFork() ;
+#endif
return 0;
}
_apy_process_rank = rank;
Module: kamailio
Branch: master
Commit: 138ef5630402448ea2643097a3d25d4dcead6d70
URL: https://github.com/kamailio/kamailio/commit/138ef5630402448ea2643097a3d25d4…
Author: Anthony Alba <ascanio.alba7(a)gmail.com>
Committer: Anthony Alba <ascanio.alba7(a)gmail.com>
Date: 2021-11-05T17:31:34+08:00
app_python3: for Python >= 3.7 call pre-fork hook
---
Modified: src/modules/app_python3/app_python3_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/138ef5630402448ea2643097a3d25d4…
Patch: https://github.com/kamailio/kamailio/commit/138ef5630402448ea2643097a3d25d4…
---
diff --git a/src/modules/app_python3/app_python3_mod.c b/src/modules/app_python3/app_python3_mod.c
index 0ce93b71cd..8ec252039c 100644
--- a/src/modules/app_python3/app_python3_mod.c
+++ b/src/modules/app_python3/app_python3_mod.c
@@ -175,6 +175,17 @@ static int mod_init(void)
static int child_init(int rank)
{
if(rank==PROC_INIT) {
+ /*
+ * this is called before any process is forked
+ * so the Python internal state handler
+ * should be called now.
+ *
+ * TODO: is PyOS_AfterFork_Parent() necesary
+ * in the main process?
+ */
+#if PY_VERSION_HEX >= 0x03070000
+ PyOS_BeforeFork() ;
+#endif
return 0;
}
_apy_process_rank = rank;