mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for bug #12177 (errorlog file isn't closed)
4.1 version of the patch libmysql/libmysql.c: here we close errorlog file sql/mysql_priv.h: stderror_file declared sql/mysqld.cc: stderror_file saved
This commit is contained in:
@ -382,6 +382,7 @@ Le_creator le_creator;
|
||||
|
||||
|
||||
FILE *bootstrap_file;
|
||||
FILE *stderror_file=0;
|
||||
|
||||
I_List<i_string_pair> replicate_rewrite_db;
|
||||
I_List<i_string> replicate_do_db, replicate_ignore_db;
|
||||
@ -2767,7 +2768,7 @@ server.");
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
if (freopen(log_error_file, "a+", stdout))
|
||||
#endif
|
||||
freopen(log_error_file, "a+", stderr);
|
||||
stderror_file= freopen(log_error_file, "a+", stderr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user