author | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 Jun 2014 12:41:12 +0000 (14:41 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 Jun 2014 12:41:12 +0000 (14:41 +0200) |
autogen.sh | patch | blob | history | |
src/tools/sysdbd/main.c | patch | blob | history |
diff --git a/autogen.sh b/autogen.sh
index e4ffee05b9816c23a037b03e5a184d8ce375d237..87fd59fd3d8e53695f1ca522fd336feaea16d804 100755 (executable)
--- a/autogen.sh
+++ b/autogen.sh
#! /bin/sh
-libtoolize=libtoolize
+if ! which yacc > /dev/null 2>&1 || ! which lex > /dev/null 2>&1; then
+ echo "yacc and lex are required to build SysDB" >&2
+ exit 1
+fi
+libtoolize=libtoolize
if which glibtoolize > /dev/null 2>&1; then
libtoolize=glibtoolize
fi
index b8e97a3c3780ec1c01cee7fc88dcd9d28bc41f2d..96fe6a645459d79aff04a4d13f7f6153b094d685 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);