Re: uuid of newly created domain

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

 



On Mon, Mar 31, 2008 at 06:17:44PM -0700, Vadim Zaliva wrote:
> On Mar 31, 2008, at 16:28, Daniel P. Berrange wrote:
>> You need to call
>>  virDomainFree(virDomainPtr dom)
>> to actually release the handle.
>
> I could not figure out how this could be expressed via Ruby bindings. This 
> function is called when object is freed, but when it happens is controlled 
> by GC.
>
> For example, KDE Ruby binding are using dispose() method paradigm to solve 
> this kind of problem:
>
> http://developer.kde.org/language-bindings/ruby/
>
> Should we add one to Domain class?
[...]
> P.S. I think the Python bindings have the same problem, virDomainPtr() is 
> called from __del__() there.

OCaml bindings have the same problem as well, but it's not something I
feel any urge to fix there.  To me it seems more like a C/libvirt bug.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]