From 1ab86a8ab9dc0739e5f540618ad7d762747e4bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 2 Sep 2024 09:26:54 +0800 Subject: [PATCH] TerminalTheme: fix hanging on screen 5.0 --- src/common/io/io_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/io/io_unix.c b/src/common/io/io_unix.c index 62c25dc59..edd740ba5 100644 --- a/src/common/io/io_unix.c +++ b/src/common/io/io_unix.c @@ -144,7 +144,7 @@ const char* ffGetTerminalResponse(const char* request, const char* format, ...) { if (ftty < 0) { - ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC); + ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC | O_NONBLOCK); if (ftty < 0) return "open(\"/dev/tty\", O_RDWR | O_NOCTTY | O_CLOEXEC) failed";