From e5028a4d8309397977896d1b20518763fd8097fb Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Sat, 25 Feb 2012 08:28:40 +1300 Subject: [PATCH] Use line-buffering on stdout, regardless of the output device. --- ui/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/main.c b/ui/main.c index eafe71d..df91937 100644 --- a/ui/main.c +++ b/ui/main.c @@ -342,6 +342,11 @@ int main(int argc, char **argv) struct cmdline_args args = {0}; int ret = 0; + /* Line buffering is required for tools which read mspdebug's + * output (like msp430eclipse). + */ + setvbuf(stdout, NULL, _IOLBF, 0); + opdb_reset(); ctrlc_init();