[lttng-dev] [PATCH lttng-tools] Fix: print dots while waiting for data availability
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Fri Jul 19 10:36:45 EDT 2013
This patch was lost, so I'm merging it.
* Mathieu Desnoyers (mathieu.desnoyers at efficios.com) wrote:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
> diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c
> index 08c0554..8de1a23 100644
> --- a/src/lib/lttng-ctl/lttng-ctl.c
> +++ b/src/lib/lttng-ctl/lttng-ctl.c
> @@ -573,6 +573,7 @@ static int _lttng_stop_tracing(const char *session_name, int wait)
> }
>
> _MSG("Waiting for data availability");
> + fflush(stdout);
>
> /* Check for data availability */
> do {
> @@ -590,6 +591,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);
>
>
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list