python-libvirt for 0.9.3 leaking file descriptors

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

 



i've reported this issue before, so i guess this is a regression. looks
like the python bindings for 0.9.3 are leaking file descriptors:

root@cloud1:~# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libvirt
>>> libvirt.getVersion()
9003
>>> def openclose():
...     c = libvirt.open('qemu:///system')
...     c.close()
... 
>>> import os
>>> os.system('lsof -p %d | wc -l' % os.getpid())
37
>>> openclose()
>>> os.system('lsof -p %d | wc -l' % os.getpid())
40
>>> openclose()
>>> os.system('lsof -p %d | wc -l' % os.getpid())
43

every time I open and close a connection to libvirt, i loose 3 file
descriptors. these are a socket and two fifo pipes. i'm using the -3
build on debian sid.

can someone test this on a fedora machine? curious if this is something
inside libvirt or a problem with the build...

thanks,
--igor

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux