From a468d7579f7d785aeed88b9f5fddb6216f2c4647 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 1 Feb 1996 05:25:54 +0000 Subject: [PATCH] (dump_remainder): Flush stdout when tailing-forever on multiple files. From Carlos Canau . --- src/tail.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tail.c b/src/tail.c index 99ad6c8d3a..a549453352 100644 --- a/src/tail.c +++ b/src/tail.c @@ -545,6 +545,12 @@ output: sleep (1); goto output; } + else + { + if (forever_multiple) + fflush (stdout); + } + return total; } -- 2.47.3