diff options
-rw-r--r-- | src/tail.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tail.c b/src/tail.c index 7a2c32506..a2a8979b1 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1526,6 +1526,10 @@ main (int argc, char **argv) if (forever) { + /* This fflush appears to be required only on Solaris2.7. */ + if (fflush (stdout) < 0) + error (EXIT_FAILURE, errno, _("write error")); + SETVBUF (stdout, NULL, _IONBF, 0); tail_forever (F, n_files); } |