From: David van Moolenbroek Date: Fri, 25 Mar 2011 10:59:48 +0000 (+0000) Subject: tail(1): write partial last line also with -f X-Git-Tag: v3.2.0~599 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=8a925dcf9054fce87182dac37d1f4c309425838e;p=minix.git tail(1): write partial last line also with -f --- 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++) {