Fix pasting large amounts of text very slow.

Fixes #682

Apparently when refactoring child.py I somehow lost the code to make the
child fd non-blocking.
This commit is contained in:
Kovid Goyal 2018-06-26 18:20:46 +05:30
parent 5362d1a7a6
commit d689c21283
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -83,6 +83,7 @@ class Child:
if stdin is not None:
os.close(stdin_read_fd)
fast_data_types.thread_write(stdin_write_fd, stdin)
fcntl.fcntl(self.child_fd, fcntl.F_SETFL, fcntl.fcntl(self.child_fd, fcntl.F_GETFL) | os.O_NONBLOCK)
return pid
@property