libcamera: Keep using syslog for isolated IPA modules
Currently it is not possible to display debug output from an isolated IPA module. The standard descriptors are all closed and any specified log file is explicitly deactivated for the IPA module. Since libcamera and the isolated IPA module are separate processes, they cannot write to the same file. However, if syslog is used, then this would be possible. If syslog is specified as a log file, then this is left as it is for the isolated IPA module. Signed-off-by: Matthias Fend <matthias.fend@emfend.at> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
committed by
Jacopo Mondi
parent
51396ab512
commit
dbe96a2a6b
@@ -263,7 +263,9 @@ int Process::start(const std::string &path,
|
||||
|
||||
closeAllFdsExcept(fds);
|
||||
|
||||
unsetenv("LIBCAMERA_LOG_FILE");
|
||||
const char *file = utils::secure_getenv("LIBCAMERA_LOG_FILE");
|
||||
if (file && strcmp(file, "syslog"))
|
||||
unsetenv("LIBCAMERA_LOG_FILE");
|
||||
|
||||
const char **argv = new const char *[args.size() + 2];
|
||||
unsigned int len = args.size();
|
||||
|
||||
Reference in New Issue
Block a user