aboutsummaryrefslogtreecommitdiff
path: root/source/app.d
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-23 07:45:04 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-23 07:45:04 -0400
commite14c1ec09938fded86c568033ec58888dd93f271 (patch)
tree55d0f271a74c9e3300e640210975e46866ce6f1e /source/app.d
parentf767fcc4ca230243487e734ec7652643f31a45c5 (diff)
downloaddm-e14c1ec09938fded86c568033ec58888dd93f271.tar.gz
Disable buffering entirely
Diffstat (limited to 'source/app.d')
-rw-r--r--source/app.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/app.d b/source/app.d
index 3ae9f54..eb7938f 100644
--- a/source/app.d
+++ b/source/app.d
@@ -18,6 +18,10 @@ int main(string[] args) {
string mergefile;
string base_spec;
+ // disable buffering
+ stdout.setvbuf(0, _IONBF);
+ stderr.setvbuf(0, _IONBF);
+
try {
auto optargs = getopt(
args,