summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-06-10 16:50:21 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-04 23:05:03 +0200
commitc49e888848154741af703596b0e70efdb0e0ec9e (patch)
tree640bb36de3497001ac72ea46af8f368d5cce93e5 /include
parentbf26505dc891aa3e32220c05ea671266cb3ef422 (diff)
libcamera: process: Manage pipe fds by UniqueFD
Manages the file descriptors owned by Process for pipe by UniqueFDs. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/process.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libcamera/internal/process.h b/include/libcamera/internal/process.h
index 96748a36..95e67e10 100644
--- a/include/libcamera/internal/process.h
+++ b/include/libcamera/internal/process.h
@@ -12,6 +12,7 @@
#include <vector>
#include <libcamera/base/signal.h>
+#include <libcamera/base/unique_fd.h>
namespace libcamera {
@@ -75,8 +76,9 @@ private:
std::list<Process *> processes_;
struct sigaction oldsa_;
+
EventNotifier *sigEvent_;
- int pipe_[2];
+ UniqueFD pipe_[2];
};
} /* namespace libcamera */