Merge pull request #569 from Low-power/handle-eagain-on-write-pty

Ignore BlockingIOError when trying to write pty master fd
This commit is contained in:
Marcin Kulik
2023-10-18 14:07:16 +02:00
committed by GitHub

View File

@@ -158,8 +158,11 @@ def record(
handle_resize()
if pty_fd in wfds:
try:
n = os.write(pty_fd, input_data)
input_data = input_data[n:]
except BlockingIOError:
pass
pid, pty_fd = pty.fork()