Displaying 1 result from an estimated 1 matches for "lookup_domain_by_nam".
Did you mean:
lookup_domain_by_name
2012 Jun 12
0
ruby-libvirt connection stays open
...ed.)
In this case there is no connection left open.
But look at this code:
1.9.3p125 :001 > require 'libvirt'
=> true
1.9.3p125 :002 > conn = Libvirt::open('qemu+ssh://localhost/system')
=> #<Libvirt::Connect:0x00000001af3d80>
1.9.3p125 :003 > domain = conn.lookup_domain_by_name('gomboc18')
=> #<Libvirt::Domain:0x00000001adf0d8>
1.9.3p125 :004 > conn.close
=> nil
1.9.3p125 :005 > conn.closed?
=> true
And i run a ps auxww there are the relevant processes:
nightw 9241 0.2 0.3 88380 13256 pts/0 Sl+ 11:39 0:00 irb
nightw 92...