diff options
Diffstat (limited to 'src/common_vgaarb.c')
-rw-r--r-- | src/common_vgaarb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |