]> git.tue.mpg.de Git - paraslash.git/commitdiff
gui: Only check STDIN for readability if curses is active.
authorAndre <maan@p133.(none)>
Thu, 23 Mar 2006 13:57:52 +0000 (14:57 +0100)
committerAndre <maan@p133.(none)>
Thu, 23 Mar 2006 13:57:52 +0000 (14:57 +0100)
gui.c

diff --git a/gui.c b/gui.c
index 9b1c739f2110d6e05c0d27e0a832472d72b5b149..fff5741dca26c6a472cd67b2fdd7d638131fe3b6 100644 (file)
--- 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);