summaryrefslogtreecommitdiffstats
path: root/python/t/010-launch.py
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-02-15 16:54:05 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-02-15 16:59:18 +0000
commitafed7e493dcd594620f19b93e9fb73e58553f60a (patch)
tree370b8f8a2de14727f47e370d84d7f6e9b8f1343b /python/t/010-launch.py
parentc9ea94810e2f7a5fcce2a7136eb07ce795f49c53 (diff)
downloadlibguestfs-afed7e493dcd594620f19b93e9fb73e58553f60a.tar.gz
libguestfs-afed7e493dcd594620f19b93e9fb73e58553f60a.tar.xz
libguestfs-afed7e493dcd594620f19b93e9fb73e58553f60a.zip
appliance: Make appliance building thread-safe (RHBZ#790721).
Appliance building can be called from multiple processes, but this is only safe if each process holds a lock on the 'checksum' file. However threads within a process are not excluded by a file lock, and so this strategy completely failed for a multithreaded program calling guestfs_launch in parallel. Since it makes no sense for threads in a single program to race each other to try to create the appliance, add a lock around appliance building. This serialises building the appliance, but the rest of guestfs_launch (eg. starting up qemu) can run in parallel.
Diffstat (limited to 'python/t/010-launch.py')
0 files changed, 0 insertions, 0 deletions