Skip to content
Commit eae6d5c7 authored by Angelos Evripiotis's avatar Angelos Evripiotis
Browse files

utils._call: fix race condition on 'process' var

Tested by inflating the chance of hitting the race. First, insert a
sleep between opening the terminator context and starting the process,
then:

    python3 -c 'import buildstream.utils; import os; \
        buildstream.utils._call(["echo", "hello"], True); \
        print(os.getpid())' & sleep 1; kill $!
parent dda1ebe4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment