]> xenbits.xensource.com Git - libvirt.git/commit
Only initialize/cleanup libpciaccess once
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Feb 2011 17:04:35 +0000 (17:04 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 9 Feb 2011 16:20:27 +0000 (16:20 +0000)
commit2215050edd8adefbf0ff21c5cbf09685877492d6
treec4a0c377e7f2005dc89e1ee4f20f2c7b7879b2b9
parent28209ca05e132665f035b14342c6261b7f97e4b8
Only initialize/cleanup libpciaccess once

libpciaccess has many bugs in its pci_system_init/cleanup
functions that makes calling them multiple times unwise.
eg it will double close() FDs, and leak other FDs.

* src/node_device/node_device_udev.c: Only initialize
  libpciaccess once
src/node_device/node_device_udev.c