Bug# 5303 Windows --log-error option doesn't work correctly

parent d84dbdfc
...@@ -2918,11 +2918,10 @@ we force server id to 2, but this MySQL server will not act as a slave."); ...@@ -2918,11 +2918,10 @@ we force server id to 2, but this MySQL server will not act as a slave.");
exit(1); exit(1);
#ifdef __WIN__ #ifdef __WIN__
#define MYSQL_ERR_FILE "mysql.err"
if (!opt_console) if (!opt_console)
{ {
freopen(MYSQL_ERR_FILE,"a+",stdout); freopen(log_error_file,"a+",stdout);
freopen(MYSQL_ERR_FILE,"a+",stderr); freopen(log_error_file,"a+",stderr);
FreeConsole(); // Remove window FreeConsole(); // Remove window
} }
#endif #endif
......
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