From 8a925dcf9054fce87182dac37d1f4c309425838e Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 25 Mar 2011 10:59:48 +0000 Subject: [PATCH] tail(1): write partial last line also with -f --- commands/tail/tail.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/tail/tail.c b/commands/tail/tail.c index ae00d7905..448887bb7 100644 --- a/commands/tail/tail.c +++ b/commands/tail/tail.c @@ -326,6 +326,8 @@ int keep_reading() off_t pos; struct stat st; + fflush(stdout); + pos = lseek(0, (off_t) 0, SEEK_CUR); for (;;) { for (i = 0; i < 60; i++) {