]> xenbits.xensource.com Git - libvirt.git/commit
Use virNetServerRun instead of custom main loop
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 16 Nov 2012 09:11:23 +0000 (09:11 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Nov 2012 08:51:03 +0000 (08:51 +0000)
commitf33e43c2353cc10065b8a5f9965d5a57cfe8991f
tree67b99488b982300e4114518e6283079cf98abb3e
parent104650db3e1656656824ff32a68759338bf716ab
Use virNetServerRun instead of custom main loop

The LXC controller code currently directly invokes the
libvirt main loop code. The problem is that this misses
the cleanup of virNetServerClient connections that
virNetServerRun takes care of.

The result is that when libvirtd is stopped, the
libvirt_lxc controller process gets stuck in a I/O loop.
When libvirtd is then started again, it fails to connect
to the controller and thus kills off the entire domain.

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