From c231b13ad4b64e35a1205135fd6ee0b01fb95edc Mon Sep 17 00:00:00 2001 From: skilion Date: Sun, 18 Feb 2018 18:24:46 +0100 Subject: [PATCH] Disabled buffering on stdout --- CHANGELOG.md | 2 ++ src/main.d | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28346b25..db32eb41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Fixed - Crash when the delta link is expired +### Changed +- Disabled buffering on stdout ## [1.1.1] - 2018-01-20 ### Fixed diff --git a/src/main.d b/src/main.d index 7e545430..86c64e5d 100644 --- a/src/main.d +++ b/src/main.d @@ -54,6 +54,9 @@ int main(string[] args) log.error("Try 'onedrive -h' for more information"); return EXIT_FAILURE; } + + // disable buffering on stdout + stdout.setvbuf(0, _IONBF); if (printVersion) { std.stdio.write("onedrive ", import("version"));