mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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:
1 parent
2bd3db74d5
commit
666e226994
1 file changed
+1
-1
+1
-1
@@ -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 ();
|
||||
|
||||
Reference in new issue
Block a user