From b1f0ab12a3121bff47a13bd4f16bcbab73aaa021 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 19 Jul 2013 10:36:52 -0400 Subject: [PATCH] Fix: print dots while waiting for data availability Signed-off-by: Mathieu Desnoyers --- src/lib/lttng-ctl/lttng-ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 1b9f3a8ab..087c51341 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -743,6 +743,7 @@ static int _lttng_stop_tracing(const char *session_name, int wait) } _MSG("Waiting for data availability"); + fflush(stdout); /* Check for data availability */ do { @@ -760,6 +761,7 @@ static int _lttng_stop_tracing(const char *session_name, int wait) if (data_ret) { usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME); _MSG("."); + fflush(stdout); } } while (data_ret != 0); -- 2.34.1