summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/terminal-unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c
index c7309fbf50..c9f3553ff0 100644
--- a/osdep/terminal-unix.c
+++ b/osdep/terminal-unix.c
@@ -389,13 +389,12 @@ static void *terminal_thread(void *ptr)
bool stdin_ok = read_terminal; // if false, we still wait for SIGTERM
fd_set readfds;
int max = death_pipe[0] > tty_in ? death_pipe[0] : tty_in;
- struct timeval timeout = { .tv_sec = 0, .tv_usec = 100000 };
while (1) {
FD_ZERO(&readfds);
FD_SET(death_pipe[0], &readfds);
FD_SET(tty_in, &readfds);
getch2_poll();
- int s = select(max + 1, &readfds, NULL, NULL, &timeout);
+ int s = select(max + 1, &readfds, NULL, NULL, NULL);
if (s == -1) {
break;
} else if (s != 0) {