[libvirt-users] How to tell if a hypervisor connection has died?

Eric Blake eblake at redhat.com
Thu Apr 25 18:04:21 UTC 2013


On 04/25/2013 11:49 AM, Guido Winkelmann wrote:
> Hi,
> 
> What's the best way to tell if a virConnect object is not good to use anymore? 
> (For example because the libvirtd on the other side crashed/has been stopped 
> or because of some network failure)

Try using virConnectIsAlive().

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130425/c91f9557/attachment.sig>


More information about the libvirt-users mailing list