From f510f2b8cc459d08297914398b332c2d9f99e185 Mon Sep 17 00:00:00 2001 From: "Christopher M. Punches" Date: Thu, 8 Feb 2024 10:41:58 +0000 Subject: [PATCH] Update src/lcpex/vpty/libclpex_tty.cpp --- src/lcpex/vpty/libclpex_tty.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lcpex/vpty/libclpex_tty.cpp b/src/lcpex/vpty/libclpex_tty.cpp index c0d73ca..27c94e9 100644 --- a/src/lcpex/vpty/libclpex_tty.cpp +++ b/src/lcpex/vpty/libclpex_tty.cpp @@ -18,20 +18,6 @@ void safe_perror( const char * msg, struct termios * ttyOrig ) exit(1); } -ssize_t write_all(int fd, const void *buf, size_t count) { - const char *p = (const char *)buf; - while (count > 0) { - ssize_t written = write(fd, p, count); - if (written == -1) { - if (errno == EINTR || errno == EAGAIN) continue; // Retry - return -1; // Other errors - } - count -= written; - p += written; - } - return 0; -} - /** * @brief Executes the child process *