From: Karel Zak Date: Wed, 3 Jun 2026 11:54:20 +0000 (+0200) Subject: libmount: (monitor) improve test output X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0610342411b491330e58f2adb2ecaa585b1c4697;p=thirdparty%2Futil-linux.git libmount: (monitor) improve test output Ensure the output is not lost when redirecting stdout. Signed-off-by: Karel Zak --- diff --git a/libmount/src/monitor.c b/libmount/src/monitor.c index 02de06c84..e99607a3c 100644 --- a/libmount/src/monitor.c +++ b/libmount/src/monitor.c @@ -607,6 +607,7 @@ static int __test_epoll(struct libmnt_test *ts __attribute__((unused)), continue; printf(" top-level FD active\n"); + fflush(stdout); if (cleanup) mnt_monitor_event_cleanup(mn); else { @@ -628,6 +629,7 @@ static int __test_epoll(struct libmnt_test *ts __attribute__((unused)), mnt_fs_is_moved(fs) ? "MOVED" : "???"); } } + fflush(stdout); } } } while (1);