Re: Unable to close open libvirt connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 12, 2012 at 04:58:03PM +0530, Jatin Kumar wrote:
> Thanks, setting dom=None solved the problem. But that needs to make alot of
> changes in the code. Do we have any other alternative ?

Well python should garbage collect them when the variables go
out of scope. When all 'dom' are garbage collected, then the
connection will be garbage collected too & the close() will
thus take effect

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux