Skip to content

Commit

Permalink
Update cylc/flow/pipe_poller.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ronnie Dutta <[email protected]>
  • Loading branch information
oliver-sanders and MetRonnie authored Nov 16, 2023
1 parent 6e9d874 commit 492d3f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cylc/flow/pipe_poller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 492d3f0

Please sign in to comment.