diff --git a/aplay/aplay.c b/aplay/aplay.c index 4852b20..40d4f88 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1394,6 +1394,10 @@ static void init_stdin(void) if (!interactive) return; + if (!isatty(fileno(stdin))) { + interactive = 0; + return; + } tcgetattr(fileno(stdin), &term); term_c_lflag = term.c_lflag; if (fd == fileno(stdin))