summaryrefslogtreecommitdiffstats
path: root/python/t
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-03-01 12:47:37 +0000
commit9d8eed41294b5dbcbdf543511338eb21aa230a7f (patch)
tree2220ffc7dea1a550f80919af7ef9f428141865a1 /python/t
parent5d1d5d13194f75b4fc90f7ad673e04ab51634637 (diff)
downloadlibguestfs-9d8eed41294b5dbcbdf543511338eb21aa230a7f.tar.gz
libguestfs-9d8eed41294b5dbcbdf543511338eb21aa230a7f.tar.xz
libguestfs-9d8eed41294b5dbcbdf543511338eb21aa230a7f.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. (cherry picked from commit afed7e493dcd594620f19b93e9fb73e58553f60a)
Diffstat (limited to 'python/t')
0 files changed, 0 insertions, 0 deletions