]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Ensure that libvirtd shuts down if initialization fails
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Jul 2011 17:23:21 +0000 (18:23 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jul 2011 10:39:39 +0000 (11:39 +0100)
commit92509413e2da3260b99177de82c85a59cf8ddfd9
tree6625b7fcb82a19169d376d8bb8ec506e3a925c97
parentd489b04628e9e0ecf5c6e2b4121dfc7a9c3b2015
Ensure that libvirtd shuts down if initialization fails

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
src/rpc/virnetserver.c