factor: buffer stdout like other progs do

* src/factor.c (lbuf_putnl): Don’t worry about whether
stdin is a tty when deciding whether to buffer stdout.
This commit is contained in:
Paul Eggert committed 2024-09-27 17:42:59 -07:00
1 parent 2bd3db74d5
commit 666e226994
1 file changed
+1 -1
+1 -1
View File
@@ -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 ();