Skip to content
Snippets Groups Projects
Commit d85f8ea1 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'py3.TrigPSC-20200501' into 'master'

TrigPSC: Fix compilation warning with py3.7.

See merge request atlas/athena!32555
parents 8b8798dc 9f192549
No related branches found
No related tags found
No related merge requests found
...@@ -676,7 +676,11 @@ bool psc::Psc::prepareWorker (const boost::property_tree::ptree& args) ...@@ -676,7 +676,11 @@ bool psc::Psc::prepareWorker (const boost::property_tree::ptree& args)
if ( Py_IsInitialized() ) { if ( Py_IsInitialized() ) {
ERS_DEBUG(1, "Post-fork initialization of Python interpreter"); ERS_DEBUG(1, "Post-fork initialization of Python interpreter");
#if PY_VERSION_HEX >= 0x03070000
PyOS_AfterFork_Child();
#else
PyOS_AfterFork(); PyOS_AfterFork();
#endif
/* Release the Python GIL (which we inherited from the mother) /* Release the Python GIL (which we inherited from the mother)
to avoid dead-locking on the first call to Python. Only relevant to avoid dead-locking on the first call to Python. Only relevant
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment