]> git.ipfire.org Git - pakfire.git/commit
pty: Implement capturing the output
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Oct 2024 09:51:52 +0000 (09:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Oct 2024 09:51:52 +0000 (09:51 +0000)
commitff20f0107e31c06f8a3aa89e3d5647a4c7b0f84d
tree4162f3867b20bd19fb9120dfe5a73f1e457dcd03
parent68698aab439507ac57365ebdabbf40242522287b
pty: Implement capturing the output

This should be the most efficient version, yet.

We create a memfd buffer which we write to and later copy the output to
the heap. This also reduces the amount of callbacks that we have to pass
around.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/pakfire.c
src/libpakfire/archive.c
src/libpakfire/build.c
src/libpakfire/include/pakfire/jail.h
src/libpakfire/include/pakfire/pty.h
src/libpakfire/jail.c
src/libpakfire/pty.c
tests/libpakfire/cgroup.c
tests/libpakfire/jail.c