summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a71977da..9c7191d6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -35,5 +35,9 @@
int main(int argc, char *argv[])
{
+ /* disable buffering otherwise piping to logs causes problems work */
+ setvbuf(stdout, NULL, _IONBF, 0);
+ setvbuf(stderr, NULL, _IONBF, 0);
+
return openocd_main(argc, argv);
}