From 492d3f065fa4a09489f76924e5d84f0fdcac7a81 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Thu, 16 Nov 2023 10:18:16 +0000 Subject: [PATCH] Update cylc/flow/pipe_poller.py Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> --- cylc/flow/pipe_poller.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cylc/flow/pipe_poller.py b/cylc/flow/pipe_poller.py index 1ba08958451..fac7d197c27 100644 --- a/cylc/flow/pipe_poller.py +++ b/cylc/flow/pipe_poller.py @@ -64,9 +64,7 @@ def _read(timeout=1.0): if len(buffer) > 0: _files[file] += buffer - while proc.returncode is None: - # poll the process (updates the returncode) - proc.poll() + while proc.poll() is None: # read from the buffers _read() # double check the buffers now that the process has finished