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