X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fcommon_vgaarb.c;h=ab3c5e806ffe78253305f5a0b41bd8b4e83eb2c4;hb=d2dc9f9daa45504f035b169aba94d0b154fd29f0;hp=86eceb51d403a484bcc29696713c415cfe927eb0;hpb=2f98724d1e603268360d704b3c8823b93d5fecb4;p=android-x86%2Fexternal-libpciaccess.git diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c index 86eceb5..ab3c5e8 100644 --- a/src/common_vgaarb.c +++ b/src/common_vgaarb.c @@ -129,7 +129,7 @@ pci_device_vgaarb_init(void) if (!pci_sys) return -1; - if ((pci_sys->vgaarb_fd = open ("/dev/vga_arbiter", O_RDWR)) < 0) { + if ((pci_sys->vgaarb_fd = open ("/dev/vga_arbiter", O_RDWR | O_CLOEXEC)) < 0) { return errno; }