]> git.ipfire.org Git - pakfire.git/commit
pty: Refactor forwarding
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Oct 2024 09:47:36 +0000 (09:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Oct 2024 09:47:36 +0000 (09:47 +0000)
commit68698aab439507ac57365ebdabbf40242522287b
tree2287a4195e50aa0e64339e170ad4f1919456d295
parenta4e6e9f433ac0206a10c1c16ac41b7cbe326eca7
pty: Refactor forwarding

This should make the process slightly more efficient because we are
checking if there is anything in the buffers before entering the loop.
We also handle any return values from the read()/write() calls better so
that we won't continue to loop too often.

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