diff options
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 4ca07d63056..d75de56b57f 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -682,7 +682,11 @@ static sig_handler print_signal_warning(int sig) void unireg_end(int signal_number __attribute__((unused))) { clean_up(); +#if defined(EMBEDDED_LIBRARY) + exit(0); // XXX QQ: this is a temporary hack (I hope) +#else pthread_exit(0); // Exit is in main thread +#endif } |