summaryrefslogtreecommitdiff
path: root/src/gflags.cc
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers+gflags@google.com>2011-11-03 23:11:24 +0000
committerCraig Silverstein <csilvers+gflags@google.com>2011-11-03 23:11:24 +0000
commit6b70a750812f46d4972f0eb4517670893e3b3e55 (patch)
treeebca77c3517d370e339312a328d5cb0e22299610 /src/gflags.cc
parent29f02f9896a68e597131e2bacc00cd3f6004b358 (diff)
downloadgflags-6b70a750812f46d4972f0eb4517670893e3b3e55.tar.gz
gflags-6b70a750812f46d4972f0eb4517670893e3b3e55.tar.bz2
gflags-6b70a750812f46d4972f0eb4517670893e3b3e55.zip
http://code.google.com/p/google-gflags/issues/detail?id=45
reports that the error isn't always getting flushed on cygwin. So do that explicitly. R=desovski DELTA=1 (1 added, 0 deleted, 0 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=3140 git-svn-id: https://gflags.googlecode.com/svn/trunk@64 6586e3c6-dcc4-952a-343f-ff74eb82781d
Diffstat (limited to 'src/gflags.cc')
-rw-r--r--src/gflags.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gflags.cc b/src/gflags.cc
index c70d2a2..a136fde 100644
--- a/src/gflags.cc
+++ b/src/gflags.cc
@@ -185,6 +185,7 @@ static void ReportError(DieWhenReporting should_die, const char* format, ...) {
vsnprintf(error_message, sizeof(error_message), format, ap);
va_end(ap);
fprintf(stderr, "%s", error_message);
+ fflush(stderr); // should be unnecessary, but cygwin's rxvt buffers stderr
if (should_die == DIE) gflags_exitfunc(1);
}