From e16c663b5fa5a0dbb674dc048159a41c331eb19f Mon Sep 17 00:00:00 2001 From: "Christopher M. Punches" Date: Thu, 8 Feb 2024 10:15:38 +0000 Subject: [PATCH] Update src/lcpex/liblcpex.cpp --- src/lcpex/liblcpex.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lcpex/liblcpex.cpp b/src/lcpex/liblcpex.cpp index 6a5b289..987b3a4 100644 --- a/src/lcpex/liblcpex.cpp +++ b/src/lcpex/liblcpex.cpp @@ -311,12 +311,12 @@ int execute( // write to stdout,stderr if (this_fd == CHILD_PIPE_NAMES::STDOUT_READ) { // the child's stdout pipe is readable - write(stdout_log_fh->_fileno, buf, byte_count); - write(STDOUT_FILENO, buf, byte_count); + write_all(stdout_log_fh->_fileno, buf, byte_count); + write_all(STDOUT_FILENO, buf, byte_count); } else if (this_fd == CHILD_PIPE_NAMES::STDERR_READ) { // the child's stderr pipe is readable - write(stderr_log_fh->_fileno, buf, byte_count); - write(STDERR_FILENO, buf, byte_count); + write_all(stderr_log_fh->_fileno, buf, byte_count); + write_all(STDERR_FILENO, buf, byte_count); } else { // this should never happen perror("Logic error!");