diff options
author | unknown <hf@deer.(none)> | 2005-08-04 15:23:21 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-08-04 15:23:21 +0500 |
commit | 36a2a092ab7ab26d5e90f73003a48db8e313df2f (patch) | |
tree | 4badbee4567e4e13b89c505a90339c9f7d44afd2 /libmysql | |
parent | 5c2578b9bd36b8b3e82d5654ee3c2f97149b4d12 (diff) | |
download | mariadb-git-36a2a092ab7ab26d5e90f73003a48db8e313df2f.tar.gz |
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
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index e5681edd3d8..7c6d140d2ef 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -188,6 +188,13 @@ void STDCALL mysql_server_end() mysql_thread_end(); free_charsets(); mysql_client_init= org_my_init_done= 0; +#ifdef EMBEDDED_SERVER + if (stderror_file) + { + fclose(stderror_file); + stderror_file= 0; + } +#endif } static MYSQL_PARAMETERS mysql_internal_parameters= |