diff --git a/src/execution/process_pty.py b/src/execution/process_pty.py index 48d1415a..43de6ec7 100644 --- a/src/execution/process_pty.py +++ b/src/execution/process_pty.py @@ -72,6 +72,8 @@ def pipe_process_output(self): while True: try: chunk = os.read(self.pty_master, max_read_bytes) + if not chunk: + break data += chunk except BlockingIOError: