summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-03-04 23:09:56 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-03-04 23:09:56 +0000
commit834ee58f5c94211cc84a41d21077338b6d998995 (patch)
tree10b2688c8e7d9ffe85f6822dea41b0d092039af8 /src
parent8e432a5ba1dfde17e8b3f11cc64aa5baf8c8363b (diff)
Ensure that stderr remains unbuffered
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4794 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-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);
}