From 821c67c164f932a189927f62b3ddcf2ee95b455a Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 23 Mar 2006 14:57:52 +0100 Subject: [PATCH] gui: Only check STDIN for readability if curses is active. --- gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui.c b/gui.c index 9b1c739f..fff5741d 100644 --- a/gui.c +++ b/gui.c @@ -895,7 +895,8 @@ repeat: FD_SET(command_pipe, &rfds); max_fileno = MAX(max_fileno, command_pipe); } - FD_SET(STDIN_FILENO, &rfds); + if (curses_active) + FD_SET(STDIN_FILENO, &rfds); ret = select(max_fileno + 1, &rfds, NULL, NULL, &tv); // PARA_DEBUG_LOG("select returned %d\n", ret); -- 2.39.5