summaryrefslogtreecommitdiff
path: root/src/main/CommandLine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/CommandLine.c')
-rw-r--r--src/main/CommandLine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c
index cffc9fbf..01b2bd23 100644
--- a/src/main/CommandLine.c
+++ b/src/main/CommandLine.c
@@ -769,6 +769,9 @@ void CCTKi_CommandLineFinished (void)
setvbuf (stdout, NULL, _IOFBF, 0);
break;
}
+
+ /* ensure that stderr is unbuffered (best for debugging) */
+ setvbuf (stderr, NULL, _IONBF, 0);
}