[libvirt] [PATCH 5/5] Convert libvirtd to use crash-safe pidfile APIs

Jiri Denemark jdenemar at redhat.com
Fri Aug 12 12:24:49 UTC 2011


On Wed, Aug 10, 2011 at 16:37:28 +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> 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 |   60 +++++++++-------------------------------------------
>  1 files changed, 11 insertions(+), 49 deletions(-)

ACK

Jirka




More information about the libvir-list mailing list