index b8e97a3c3780ec1c01cee7fc88dcd9d28bc41f2d..bf56656d05ca3e93c961a76c32501d335ffcbfb2 100644 (file)
--- a/src/tools/sysdbd/main.c
+++ b/src/tools/sysdbd/main.c
int status = 0;
- while (42) {
+ while (status == 0) {
size_t i;
plugin_main_loop.do_loop = 1;
}
/* break on error */
- if (i < listen_addresses_num) {
- status = 1;
+ if (status)
break;
- }
sdb_log(SDB_LOG_INFO, "SysDB daemon "SDB_VERSION_STRING
SDB_VERSION_EXTRA " (libsysdb %s%s, pid %i) initialized "
}
/* clean up in case we exited the loop on error */
+ plugin_main_loop.do_loop = 0;
+ frontend_main_loop.do_loop = 0;
pthread_kill(backend_thread, SIGINT);
pthread_join(backend_thread, NULL);
int
main(int argc, char **argv)
{
- _Bool do_daemonize = 1;
+ bool do_daemonize = 1;
struct sigaction sa_intterm;
struct sigaction sa_hup;