]> Zhao Yanbai Git Server - minix.git/commitdiff
tail(1): write partial last line also with -f
authorDavid van Moolenbroek <david@minix3.org>
Fri, 25 Mar 2011 10:59:48 +0000 (10:59 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Fri, 25 Mar 2011 10:59:48 +0000 (10:59 +0000)
commands/tail/tail.c

index ae00d7905c07df70b713011ee902932a6dcf20f4..448887bb7b48f814de97646ba30443405b17dfed 100644 (file)
@@ -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++) {