]> xenbits.xensource.com Git - libvirt.git/commit
Convert libvirtd to use crash-safe pidfile APIs
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 5 Aug 2011 14:11:11 +0000 (15:11 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Aug 2011 19:37:00 +0000 (20:37 +0100)
commitc8a3a265135a0527b46aeb0ebd39de8a03189fb0
tree752e8b49d6cf87732ebe0942d7a4f5485ec71d0a
parente1da464d88cd39794809ec0d82dcdfbede744ad6
Convert libvirtd to use crash-safe pidfile APIs

Remove the current libvirtd pidfile handling code, in favour of
calling out to the new APIs. This ensures libvirtd's pidfile
handling is crashsafe

This also means that the non-root libvirtd instances (for handling
qemu:///session URIs) can now safely use pidfiles without racing

* daemon/libvirtd.c: Switch to use virPidFileAcquire and
  virPidFileRelease
daemon/libvirtd.c