aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-09-01 13:59:54 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-09-01 14:06:05 +0200
commitf4f2d5e29ee02d7785ef0150398df7c164feee44 (patch)
treeba2f1e2b6ec99865ceeb54372b7a4c03ce4f6a2f
parent1f2c7aae9fdd39a478944ccda5c9e82d76ab5db6 (diff)
downloadble-toys-f4f2d5e29ee02d7785ef0150398df7c164feee44.tar.gz
ble-toys-f4f2d5e29ee02d7785ef0150398df7c164feee44.tar.bz2
ble-toys-f4f2d5e29ee02d7785ef0150398df7c164feee44.tar.xz
ble-toys-f4f2d5e29ee02d7785ef0150398df7c164feee44.zip
o Making sure stdout is flushed properly before returning.
-rw-r--r--apps/sample-add-timestamp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/sample-add-timestamp.cpp b/apps/sample-add-timestamp.cpp
index 841782e..ec3c43a 100644
--- a/apps/sample-add-timestamp.cpp
+++ b/apps/sample-add-timestamp.cpp
@@ -83,6 +83,8 @@ public:
parser->process(b);
}
+ stdout->flush();
+
return EXIT_SUCCESS;
};
};