diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-03-04 23:09:56 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-03-04 23:09:56 +0000 |
commit | 834ee58f5c94211cc84a41d21077338b6d998995 (patch) | |
tree | 10b2688c8e7d9ffe85f6822dea41b0d092039af8 /src | |
parent | 8e432a5ba1dfde17e8b3f11cc64aa5baf8c8363b (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.c | 3 |
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); } |