app_python3 needs to call PyOS_AfterFork_Child()/PyOS_AfterFork()
in real child processes.

We need a test for this: rank > 0 may not be sufficient due to
non-forking mode. This POC uses getpid().

Type Of Change

Checklist:

Description

@miconda @henningw : this PR is for discussion only: in KEMI Python there is an interpreter function that needs to be called after fork() in real child processes. I realise that rank > 0 may not be a completely correct test as kamailio has a non-forking mode. Your comments would be appreciated.

This POC uses getpid() to detect a “real” child process.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3139

Commit Summary

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3139@github.com>