Commit 7b9c7c18 authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent 71312824
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment