Users can spawn subprocesses from existing Julia/Python, which inherits environment variables including CF_TYPY_PY_APIPTR.
However, CF_TYPY_PY_APIPTR inherited from the parent process is invalid.
We need an another auxiliary environment variable CF_TYPY_PID. It should be initialized using getpid() in Julia, or os.getpid() in Python. CF_TYPY_PY_APIPTR is valid only if CF_TYPY_PID equals to the identity of the current process.
Users can spawn subprocesses from existing Julia/Python, which inherits environment variables including
CF_TYPY_PY_APIPTR
.However,
CF_TYPY_PY_APIPTR
inherited from the parent process is invalid.We need an another auxiliary environment variable
CF_TYPY_PID
. It should be initialized usinggetpid()
in Julia, oros.getpid()
in Python.CF_TYPY_PY_APIPTR
is valid only ifCF_TYPY_PID
equals to the identity of the current process.