Use virNetServerRun instead of custom main loop
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 <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

VenkatDatta/libvirt,siboulet/libvirt-openvz,agx/libvirt,jfehlig/libvirt,shugaoye/libvirt,rlaager/libvirt,emaste/libvirt,jeckersb/libvirt,zippy2/libvirt,iam-TJ/libvirt,jeckersb/libvirt,jeckersb/libvirt,taget/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,emaste/libvirt,jfehlig/libvirt,rlaager/libvirt,nertpinx/libvirt,emaste/libvirt,siboulet/libvirt-openvz,bjzhang/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,rlaager/libvirt,eskultety/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,zippy2/libvirt,eskultety/libvirt,cbosdo/libvirt,jardasgit/libvirt,datto/libvirt,cbosdo/libvirt,nertpinx/libvirt,bjzhang/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,emaste/libvirt,taget/libvirt,jeckersb/libvirt,taget/libvirt,agx/libvirt,libvirt/libvirt,libvirt/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,jeckersb/libvirt,cbosdo/libvirt,taget/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,crobinso/libvirt,emaste/libvirt,siboulet/libvirt-openvz,andreabolognani/libvirt,nertpinx/libvirt,agx/libvirt,andreabolognani/libvirt,crobinso/libvirt,elmarco/libvirt,eskultety/libvirt,elmarco/libvirt,olafhering/libvirt,libvirt/libvirt,rlaager/libvirt,trainstack/libvirt,crobinso/libvirt,iam-TJ/libvirt,trainstack/libvirt,jfehlig/libvirt,trainstack/libvirt,shugaoye/libvirt,shugaoye/libvirt,libvirt/libvirt,trainstack/libvirt,olafhering/libvirt,datto/libvirt,datto/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,emaste/libvirt,andreabolognani/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,bjzhang/libvirt,trainstack/libvirt,VenkatDatta/libvirt,crobinso/libvirt,jardasgit/libvirt,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,bjzhang/libvirt,jfehlig/libvirt,iam-TJ/libvirt,shugaoye/libvirt,iam-TJ/libvirt,datto/libvirt,trainstack/libvirt,elmarco/libvirt,VenkatDatta/libvirt,olafhering/libvirt,jardasgit/libvirt,rlaager/libvirt,jeckersb/libvirt,olafhering/libvirt,emaste/libvirt,nertpinx/libvirt,elmarco/libvirt,jeckersb/libvirt,iam-TJ/libvirt,zippy2/libvirt,andreabolognani/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,bjzhang/libvirt,fabianfreyer/libvirt,agx/libvirt,agx/libvirt,zippy2/libvirt,siboulet/libvirt-openvz,eskultety/libvirt