1
0
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:
unknown
2005-08-04 15:23:21 +05:00
parent 5c2578b9bd
commit 36a2a092ab
3 changed files with 10 additions and 1 deletions

View File

@ -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);
}
}