[PATCH v3 0/1] libcamera: process: Pass stderr and reserve stdin and stdout fds

Julien Vuillaumier julien.vuillaumier at nxp.com
Mon May 19 14:23:51 CEST 2025


Hello,

This is the v3 of this patch aimed at letting a child process to log
onto parent's stderr, and making sure that its stdin/stdout/stderr
fds are not free to reuse.

It addresses the review comments from Barnabás.

v3: 
- Give the option to inherit from any standard file descriptor from
  the parent 
- Fix a possible self duplication of descriptors
- Fix the null device descriptor that unnecessarily remains opens

v2:
- Pass only parent's stderr to the child process for logging purpose
- Reallocate child's stdin/stdout file descriptors to /dev/null (daemon style) so
  that they are not recycled for other usage

Thanks,
Julien

Julien Vuillaumier (1):
  libcamera: process: Pass stderr and reserve stdin and stdout fds

 src/libcamera/process.cpp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

-- 
2.34.1



More information about the libcamera-devel mailing list