Use line-buffering on stdout, regardless of the output device.

This commit is contained in:
Daniel Beer 2012-02-25 08:28:40 +13:00
parent 355948af16
commit e5028a4d83
1 changed files with 5 additions and 0 deletions

View File

@ -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();