From 55de702588131237433957f036bdd3bc9dc5ee06 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 2 Nov 2004 18:18:21 +0100 Subject: [PATCH] Bug# 5303 Windows --log-error option doesn't work correctly sql/mysqld.cc: changed to open log_error_file instead of "mysql.err" on Windows --- sql/mysqld.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 7062334edbb..2159fd5e402 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2918,11 +2918,10 @@ we force server id to 2, but this MySQL server will not act as a slave."); exit(1); #ifdef __WIN__ -#define MYSQL_ERR_FILE "mysql.err" if (!opt_console) { - freopen(MYSQL_ERR_FILE,"a+",stdout); - freopen(MYSQL_ERR_FILE,"a+",stderr); + freopen(log_error_file,"a+",stdout); + freopen(log_error_file,"a+",stderr); FreeConsole(); // Remove window } #endif