]> git.ipfire.org Git - pakfire.git/commit - src/libpakfire/jail.c
jail: Implement better logging for the child process
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Aug 2022 15:18:54 +0000 (15:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Aug 2022 15:18:54 +0000 (15:18 +0000)
commite33387d3c9e708cfa9f22f33c6f0ade6553412cc
treecb35cc6305325825360a36435948326acf801f24
parent3aad8c0dbb5056054358c848459389b373e259ff
jail: Implement better logging for the child process

The child process used to dump any logging to the standard output/error
which is not useful when we want to collect any actual output of the
process that was called.

This patch adds extra pipes (one for each log level - I know) and passes
those log messages on to the regular logger (past the jail log
callback).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/jail.c