1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Add some examples for using libmysqld, including a hack for running the

mysql test suite.

A few minor libmysqld fixes.

Add mysql_server_init() and _end() to mysql.cc and mysqltest.c, so they
can be linked against libmysqlclient or libmysqld.
This commit is contained in:
tim@black.box
2001-09-16 21:41:22 -04:00
parent fa23b20789
commit e6e25a567b
11 changed files with 538 additions and 41 deletions

View File

@ -684,7 +684,9 @@ static sig_handler print_signal_warning(int sig)
void unireg_end(int signal_number __attribute__((unused)))
{
clean_up();
#ifndef OS2
#if defined(EMBEDDED_LIBRARY)
exit(0); // XXX QQ: this is a temporary hack (I hope)
#elif !defined(OS2)
pthread_exit(0); // Exit is in main thread
#endif
}