From 0581e7433941b495539cf5c380333e90bf67fb3b Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Fri, 2 Mar 2012 11:19:39 -0800 Subject: [PATCH] Revert "Use line-buffering on stdout, regardless of the output device." This reverts commit e5028a4d8309397977896d1b20518763fd8097fb. Line buffering for stdio is not implemented correctly on Windows, and the _IOLBF option is equivalent to full buffering. Redirecting output in bash with >& reproduces this problem. --- ui/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ui/main.c b/ui/main.c index df91937..eafe71d 100644 --- a/ui/main.c +++ b/ui/main.c @@ -342,11 +342,6 @@ 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();