]> git.ipfire.org Git - pakfire.git/commit
pty: Refactor how we capture output
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Mar 2025 18:02:26 +0000 (18:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Mar 2025 18:02:26 +0000 (18:02 +0000)
commit57c0854b4f071a1a57b4e84d6d951f959bde286b
tree3ebe479f1bc5ff3e1a1de72d22b669792c79546e
parent1bb1255000d59bba65638a06ebb64a3f9a662c75
pty: Refactor how we capture output

This will now avoid copying all the data around between the kernel and
userland and will also simply use our own callbacks which helps us to
keep the code a little bit less of an if/else hell.

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