From d689c21283ca6891febcf2dd954aa63880112e9e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 Jun 2018 18:20:46 +0530 Subject: [PATCH] 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. --- kitty/child.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/child.py b/kitty/child.py index 7e99aec3c..123ac89a8 100644 --- a/kitty/child.py +++ b/kitty/child.py @@ -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