From 666e226994bae539b10ce0859d07cad76edff28f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 26 Sep 2024 15:41:03 -0700 Subject: [PATCH] factor: buffer stdout like other progs do MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/factor.c (lbuf_putnl): Don’t worry about whether stdin is a tty when deciding whether to buffer stdout. --- src/factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factor.c b/src/factor.c index 35b556f755..f947022e1d 100644 --- a/src/factor.c +++ b/src/factor.c @@ -2360,7 +2360,7 @@ lbuf_putnl (void) /* Provide immediate output for interactive use. */ static int line_buffered = -1; if (line_buffered < 0) - line_buffered = isatty (STDIN_FILENO) || isatty (STDOUT_FILENO); + line_buffered = isatty (STDOUT_FILENO); if (line_buffered) lbuf_flush (); -- 2.47.2