]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: output immediately if stdout is a tty but stdin is not
authorShugo Maeda <shugo@ruby-lang.org>
Sun, 31 Mar 2019 22:43:58 +0000 (15:43 -0700)
committerPádraig Brady <P@draigBrady.com>
Sun, 31 Mar 2019 22:49:48 +0000 (15:49 -0700)
commit6d78a28078feb6bfd26c6f1cc0ddbb0a356514c4
tree664fa24e907b7350de0ca4f8844643900b3091ab
parentebf70f297cae5de0a70408cfc98377d9f801478a
factor: output immediately if stdout is a tty but stdin is not

* src/factor.c (lbuf_putc): Use line buffered mode if the standard
output is a terminal in the same way as the stdio library.
User programs might use pty only for the standard out
like the example of Ruby's PTY module:
https://docs.ruby-lang.org/en/2.6.0/PTY.html#module-PTY-label-Example
* NEWS: Mention the fix.
Fixes https://bugs.gnu.orv/35046
NEWS
src/factor.c