]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: flush stdout after each (un)(re)mount event, when polling.
authorPedro Miguel Carvalho <PedroMC@pmc.com.pt>
Sun, 29 Jan 2017 12:03:23 +0000 (12:03 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 21 Feb 2017 12:13:01 +0000 (13:13 +0100)
Addresses: karelzak#407

misc-utils/findmnt.c

index ea4d23d8e18971a577278f63d656ecd9c62f2c8e..eb6435f85e94a4e934ba243beb8ff495b6ba0e55 100644 (file)
@@ -1142,6 +1142,7 @@ static int poll_table(struct libmnt_table *tb, const char *tabfile,
 
                if (count) {
                        rc = scols_table_print_range(table, NULL, NULL);
+                       fflush(stdout);
                        if (rc)
                                goto done;
                }