summaryrefslogtreecommitdiff
path: root/plugin/daemon_example
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-12-16 19:39:00 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-12-16 19:39:00 +0400
commit90ea0145856338221803ebb9b446ed2a6e082412 (patch)
tree56c4b912a8156d5b3c4a8986ecbebe7b9833aa98 /plugin/daemon_example
parent71eee693b2ffadaf3d3ae9f68d5a723d9e4b503a (diff)
downloadmariadb-git-90ea0145856338221803ebb9b446ed2a6e082412.tar.gz
MDEV-8378 - Debian: the Lintian complains about many "shlib-calls-exit" in manymariadb-10.0.23
of the plugins Removed exit() from daemon_example, pass error to caller instead. Also removed unused my_abort_hook.
Diffstat (limited to 'plugin/daemon_example')
-rw-r--r--plugin/daemon_example/daemon_example.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/daemon_example/daemon_example.cc b/plugin/daemon_example/daemon_example.cc
index dbc3c5c49e3..cdea632c8f4 100644
--- a/plugin/daemon_example/daemon_example.cc
+++ b/plugin/daemon_example/daemon_example.cc
@@ -129,7 +129,7 @@ static int daemon_example_plugin_init(void *p __attribute__ ((unused)))
(void *)con) != 0)
{
fprintf(stderr,"Could not create heartbeat thread!\n");
- exit(0);
+ DBUG_RETURN(1);
}
plugin->data= (void *)con;