Re: [v2 PATCH] libpciaccess: close mtrr fd on pci_cleanup

2011-10-25 Thread Jeremy Huddleston
Thanks, I reviewed and pushed this with a small modification. --Jeremy On Oct 24, 2011, at 12:15 PM, Nithin Nayak Sujir wrote: Since the fd is not closed, calling pci_system_init and pci_system_cleanup more than 1024 times results in too many files open error. v2: Modified the patch to

[v2 PATCH] libpciaccess: close mtrr fd on pci_cleanup

2011-10-24 Thread Nithin Nayak Sujir
Since the fd is not closed, calling pci_system_init and pci_system_cleanup more than 1024 times results in too many files open error. v2: Modified the patch to use the destroy hook function instead of calling close in the common code based on Jeremy Huddleston's comments. It seemed appropriate to