[libcamera-devel] [PATCH] libcamera: Add missing O_CLOEXEC flag
Elias Naur
mail at eliasnaur.com
Tue May 2 01:47:34 CEST 2023
Missed in commit 436b38fd89fe4324d2342084ef477a7a8809a001.
Signed-off-by: Elias Naur <mail at eliasnaur.com>
---
src/libcamera/v4l2_videodevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index 1051997e..a72ef64d 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -1471,7 +1471,7 @@ UniqueFD V4L2VideoDevice::exportDmabufFd(unsigned int index,
expbuf.type = bufferType_;
expbuf.index = index;
expbuf.plane = plane;
- expbuf.flags = O_RDWR;
+ expbuf.flags = O_CLOEXEC | O_RDWR;
ret = ioctl(VIDIOC_EXPBUF, &expbuf);
if (ret < 0) {
--
2.39.2
More information about the libcamera-devel
mailing list