]> 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)
committerPedro Miguel Carvalho <PedroMC@pmc.com.pt>
Sun, 29 Jan 2017 12:03:23 +0000 (12:03 +0000)
Addresses: karelzak#407

misc-utils/findmnt.c

index aff2847288c90b31ea5a7d7edf7d9a183b0f2a2a..3984d440b2d0ce0a1b65a0fb95e0be1b393dfb1f 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;
                }