Skip to content
Snippets Groups Projects
Commit 9f192549 authored by scott snyder's avatar scott snyder
Browse files

TrigPSC: Fix compilation warning with py3.7.

As of python 3.7, PyOS_AfterFork is replaced by PyOS_AfterFork_Child.
parent 08ff978d
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)
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
......
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