]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix thread safety in LXC callback handling
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Mar 2013 12:10:39 +0000 (12:10 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Mar 2013 17:27:01 +0000 (17:27 +0000)
commitd50cb2b115546ac631c7c2c42d6312cad89b685a
tree9f7d379cc722102effc83afefd889643cff676ff
parent53cbfc2f106d0af62940a1f9f8b8ac634fe0fca2
Fix thread safety in LXC callback handling

Some of the LXC callbacks did not lock the virDomainObjPtr
instance. This caused transient errors like

error: Failed to start domain busy-mount
error: cannot rename file '/var/run/libvirt/lxc/busy-mount.xml.new' as '/var/run/libvirt/lxc/busy-mount.xml': No such file or directory

as 2 threads tried to update the status file concurrently

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_process.c