v4l2: Set O_CLOEXEC on the device fd
authorArun Raghavan <git@arunraghavan.net>
Tue, 3 Nov 2015 16:31:07 +0000 (22:01 +0530)
committerArun Raghavan <git@arunraghavan.net>
Tue, 3 Nov 2015 16:32:38 +0000 (22:02 +0530)
commit7b17615da8844080d66c82bd7cc2090681d31aac
tree64da9f87d55ec8c174b06cdac4cc9573cd428bd4
parent9fee2c7c9f96829a91012f98c75aa176748c1d3c
v4l2: Set O_CLOEXEC on the device fd

This is needed to make sure that child processes don't inherit the video
device fd which can cause problems with some drivers.
sys/v4l2/gstv4l2.c