Fix: print dots while waiting for data availability
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Jul 2013 14:36:52 +0000 (10:36 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Jul 2013 14:36:52 +0000 (10:36 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index 1b9f3a8ab99a95d54e6ffcd6b8465092dfe4da17..087c5134101ac234f7f5457d70b41aad87f0a2fc 100644 (file)
@@ -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);
 
This page took 0.026986 seconds and 4 git commands to generate.