Make sure stderr is not buffered.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@130 eb4d4688-79bd-11dd-afb4-1d65580434c0
This commit is contained in:
parent
fdc710e355
commit
e6af5ea5f1
@ -178,6 +178,9 @@ int main(int argc, char **argv) {
|
|||||||
#ifdef HAVE_LIB_GFLAGS
|
#ifdef HAVE_LIB_GFLAGS
|
||||||
ParseCommandLineFlags(&argc, &argv, true);
|
ParseCommandLineFlags(&argc, &argv, true);
|
||||||
#endif
|
#endif
|
||||||
|
// Make sure stderr is not buffered as stderr seems to be buffered
|
||||||
|
// on recent windows.
|
||||||
|
setbuf(stderr, NULL);
|
||||||
|
|
||||||
// Test some basics before InitGoogleLogging:
|
// Test some basics before InitGoogleLogging:
|
||||||
CaptureTestStderr();
|
CaptureTestStderr();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user