From 67ab74a8c89e0deadaff9b7f1e7455219c77ce4c Mon Sep 17 00:00:00 2001 From: "Christopher M. Punches" Date: Thu, 8 Feb 2024 10:40:57 +0000 Subject: [PATCH] Update src/lcpex/vpty/libclpex_tty.cpp --- src/lcpex/vpty/libclpex_tty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lcpex/vpty/libclpex_tty.cpp b/src/lcpex/vpty/libclpex_tty.cpp index 9d97de3..c0d73ca 100644 --- a/src/lcpex/vpty/libclpex_tty.cpp +++ b/src/lcpex/vpty/libclpex_tty.cpp @@ -300,7 +300,7 @@ int exec_pty( waitpid(pid, &status, 0); // Drain the pipes before exiting - while ((byte_count = read(fd_child_stdout_pipe[READ_END], buf, BUFFER_SIZE)) > 0) { + 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); }