1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-5654 Server crashes on second installation of daemon_example plugin

daemon plugin: join the thread to make sure it exits before the plugin is unloaded
This commit is contained in:
Sergei Golubchik
2014-02-17 11:10:26 +01:00
parent 7131282464
commit 7b9c7c18d0

View File

@@ -162,6 +162,7 @@ static int daemon_example_plugin_deinit(void *p __attribute__ ((unused)))
struct tm tm_tmp;
pthread_cancel(con->heartbeat_thread);
pthread_join(con->heartbeat_thread, NULL);
localtime_r(&result, &tm_tmp);
my_snprintf(buffer, sizeof(buffer),