Skip to contentSkip to conversation

Fix: print dots while waiting for data availability

PATCH Mathieu Desnoyers 1 participant 1 message Jul 19, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20130626171420.GA32374@Krystal

#1 lore raw

This patch was lost, so I'm merging it.

Quoted 32 lines · * Mathieu Desnoyers ([email protected]) wrote:

---

src/lib/lttng-ctl/lttng-ctl.c +2 -0
index 08c0554..8de1a23 100644
@@ -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);
 
Signature · 9 lines
-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com