Skip to content

Commit

Permalink
Merge pull request #151 from jthacker/bug/pty-proc-cpu-usage
Browse files Browse the repository at this point in the history
Fix endless while loop on EOF for pty process
  • Loading branch information
bugy authored Dec 27, 2018
2 parents 5652e35 + 5a79023 commit b832abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/execution/process_pty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b832abe

Please sign in to comment.