Commit 30eaa0b1 authored by unknown's avatar unknown
Browse files

Fix problem with windows where stderr is not flushed until end of program.


client/mysqldump.c:
  fflush stderr after writing to it.
parent f7e099e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -852,6 +852,7 @@ static void DB_error(MYSQL *mysql, const char *when)
  DBUG_ENTER("DB_error");
  fprintf(stderr, "%s: Got error: %d: %s %s\n", my_progname,
          mysql_errno(mysql), mysql_error(mysql), when);
  fflush(stderr);
  safe_exit(EX_MYSQLERR);
  DBUG_VOID_RETURN;
} /* DB_error */