This commit is contained in:
Kovid Goyal 2016-10-29 21:13:45 +05:30
parent 15771fb90c
commit 42675c2531

View File

@ -93,7 +93,10 @@ def read_ready(self):
def write_ready(self):
if not self.shutting_down:
while 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:]