[libvirt] [PATCH] Ensure that libvirtd shuts down if initialization fails
Eric Blake
eblake at redhat.com
Thu Jul 21 22:25:36 UTC 2011
On 07/21/2011 11:29 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"<berrange at redhat.com>
>
> If the virStateInitialize call fails we must shutdown libvirtd
> since drivers will not be available. Just free'ing the virNetServer
> is not sufficient, we must send a SIGTERM to ourselves so that
> we interrupt the event loop and trigger a orderly shutdown
>
> * daemon/libvirtd.c: Kill ourselves if state init fails
> * src/rpc/virnetserver.c: Add some debugging to event loop
> ---
> daemon/libvirtd.c | 2 ++
> src/rpc/virnetserver.c | 2 ++
> 2 files changed, 4 insertions(+), 0 deletions(-)
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list