Commit 6b70a750 authored by Craig Silverstein's avatar Craig Silverstein

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
parent 29f02f98
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment