mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 19:47:21 +03:00
...
This commit is contained in:
parent
15771fb90c
commit
42675c2531
@ -93,7 +93,10 @@ def read_ready(self):
|
||||
def write_ready(self):
|
||||
if not self.shutting_down:
|
||||
while self.write_buf:
|
||||
n = os.write(self.child_fd, self.write_buf)
|
||||
try:
|
||||
n = os.write(self.child_fd, self.write_buf)
|
||||
except BlockingIOError:
|
||||
n = 0
|
||||
if not n:
|
||||
return
|
||||
self.write_buf = self.write_buf[n:]
|
||||
|
Loading…
Reference in New Issue
Block a user