diff --git a/src/daemon/sysdbd.c b/src/daemon/sysdbd.c
index 4fbf48f449b1eca24b4dc4bcdd7db346fe807da8..21350f308b15bc75d624baed8f99b878011caf5c 100644 (file)
--- a/src/daemon/sysdbd.c
+++ b/src/daemon/sysdbd.c
#include "sysdb.h"
#include "core/plugin.h"
#include "core/store.h"
-#include "core/error.h"
+#include "utils/error.h"
#include "frontend/sock.h"
backend_handler(void __attribute__((unused)) *data)
{
sdb_plugin_collector_loop(&plugin_main_loop);
+ sdb_log(SDB_LOG_INFO, "Shutting down backend thread");
return NULL;
} /* backend_handler */
struct sigaction sa_intterm;
int status;
+ sdb_error_set_logger(sdb_plugin_log);
+
while (42) {
int opt = getopt(argc, argv, "C:DhV");
sdb_log(SDB_LOG_INFO, "Waiting for backend thread to terminate");
plugin_main_loop.do_loop = 0;
+ pthread_kill(backend_thread, SIGINT);
pthread_join(backend_thread, NULL);
sdb_fe_sock_destroy(sock);
}