From: Mathieu Desnoyers Date: Fri, 19 Jul 2013 14:36:52 +0000 (-0400) Subject: Fix: print dots while waiting for data availability X-Git-Tag: v2.2.3~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b1f0ab12a3121bff47a13bd4f16bcbab73aaa021;p=lttng-tools.git Fix: print dots while waiting for data availability Signed-off-by: Mathieu Desnoyers --- 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);