diff --git a/HLT/Trigger/TrigControl/TrigPSC/src/Psc.cxx b/HLT/Trigger/TrigControl/TrigPSC/src/Psc.cxx index 5cf7c2c3f15459252a48a2d4a11a49bae13f6a91..cd0625d453e6be6625c977eacfbd253358844f19 100644 --- a/HLT/Trigger/TrigControl/TrigPSC/src/Psc.cxx +++ b/HLT/Trigger/TrigControl/TrigPSC/src/Psc.cxx @@ -676,7 +676,11 @@ bool psc::Psc::prepareWorker (const boost::property_tree::ptree& args) if ( Py_IsInitialized() ) { ERS_DEBUG(1, "Post-fork initialization of Python interpreter"); +#if PY_VERSION_HEX >= 0x03070000 + PyOS_AfterFork_Child(); +#else PyOS_AfterFork(); +#endif /* Release the Python GIL (which we inherited from the mother) to avoid dead-locking on the first call to Python. Only relevant