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.3.0-rc2~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b7a81c24b6356fedf2b4ea08a0a2c25a91a35d82;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 033a28105..daa4a7391 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -574,6 +574,7 @@ static int _lttng_stop_tracing(const char *session_name, int wait) } _MSG("Waiting for data availability"); + fflush(stdout); /* Check for data availability */ do { @@ -591,6 +592,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);