diff options
Diffstat (limited to 'osdep/terminal-unix.c')
-rw-r--r-- | osdep/terminal-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index a3cb82aa06..5c8e61ba78 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -756,7 +756,7 @@ static void quit_request_sighandler(int signum) static void *terminal_thread(void *ptr) { - bool stdin_ok = true; // if false, we still wait for SIGTERM + bool stdin_ok = isatty(STDIN_FILENO); // if false, we still wait for SIGTERM while (1) { struct pollfd fds[2] = { {.events = POLLIN, .fd = death_pipe[0]}, |