From 0561460b5492656b1bc8dbac550e17d4ec41ae26 Mon Sep 17 00:00:00 2001 From: phanes Date: Thu, 8 Feb 2024 06:15:06 -0500 Subject: [PATCH] fixed nonsense with truncation --- src/lcpex/vpty/libclpex_tty.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lcpex/vpty/libclpex_tty.cpp b/src/lcpex/vpty/libclpex_tty.cpp index 27c94e9..7f98e2a 100644 --- a/src/lcpex/vpty/libclpex_tty.cpp +++ b/src/lcpex/vpty/libclpex_tty.cpp @@ -286,10 +286,10 @@ int exec_pty( waitpid(pid, &status, 0); // Drain the pipes before exiting - while ((byte_count = read(masterFd, buf, BUFFER_SIZE)) > 0) { - write_all(stdout_log_fh->_fileno, buf, byte_count); - write_all(STDOUT_FILENO, buf, byte_count); - } + //while ((byte_count = read(masterFd, buf, BUFFER_SIZE)) > 0) { + // write_all(stdout_log_fh->_fileno, buf, byte_count); + // write_all(STDOUT_FILENO, buf, byte_count); + //} while ((byte_count = read(fd_child_stderr_pipe[READ_END], buf, BUFFER_SIZE)) > 0) { write_all(stderr_log_fh->_fileno, buf, byte_count); write_all(STDERR_FILENO, buf, byte_count);