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:37:14 +0000 (10:37 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index 033a28105ef6744f464434c32ad0f01b2ada889c..daa4a7391b2bca552efd7caf391528e14d4ed968 100644 (file)
@@ -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);
 
This page took 0.026981 seconds and 4 git commands to generate.