diff --git a/src/examples/throughput/publisher.c b/src/examples/throughput/publisher.c index 18abfa5..6809e44 100644 --- a/src/examples/throughput/publisher.c +++ b/src/examples/throughput/publisher.c @@ -57,6 +57,8 @@ int main (int argc, char **argv) dds_entity_t writer; ThroughputModule_DataType sample; + setvbuf (stdout, NULL, _IOLBF, 0); + if (parse_args(argc, argv, &payloadSize, &burstInterval, &burstSize, &timeOut, &partitionName) == EXIT_FAILURE) { return EXIT_FAILURE; } diff --git a/src/examples/throughput/subscriber.c b/src/examples/throughput/subscriber.c index 4ea5422..4eb3d18 100644 --- a/src/examples/throughput/subscriber.c +++ b/src/examples/throughput/subscriber.c @@ -98,6 +98,7 @@ int main (int argc, char **argv) sat.sa_flags = 0; sigaction (SIGINT, &sat, &oldAction); #endif + setvbuf (stdout, NULL, _IOLBF, 0); if (parse_args(argc, argv, &maxCycles, &partitionName) == EXIT_FAILURE) {