Code

sysdbd: Fixed a typo.
[sysdb.git] / src / daemon / sysdbd.c
index 072807dc84611ec26df49beb157cbe72a67ccf31..2f2afa249505b79bcfc76d10169272e6b7fcef06 100644 (file)
@@ -77,7 +77,6 @@ static char *default_listen_addresses[] = {
 static void
 sigintterm_handler(int __attribute__((unused)) signo)
 {
-       plugin_main_loop.do_loop = 0;
        frontend_main_loop.do_loop = 0;
 } /* sigintterm_handler */
 
@@ -105,7 +104,7 @@ exit_version(void)
 {
        printf("SysDBd version "SDB_VERSION_STRING SDB_VERSION_EXTRA", "
                        "built "BUILD_DATE"\n"
-                       "using libsysdb verion %s%s\n"
+                       "using libsysdb version %s%s\n"
                        "Copyright (C) 2012 "PACKAGE_MAINTAINER"\n"
 
                        "\nThis is free software under the terms of the BSD license, see "
@@ -280,6 +279,7 @@ main(int argc, char **argv)
                if (i >= listen_addresses_num)
                        sdb_fe_sock_listen_and_serve(sock, &frontend_main_loop);
 
+               sdb_log(SDB_LOG_INFO, "Waiting for backend thread to terminate");
                plugin_main_loop.do_loop = 0;
                pthread_join(backend_thread, NULL);
                sdb_fe_sock_destroy(sock);
@@ -287,9 +287,6 @@ main(int argc, char **argv)
 
        sdb_log(SDB_LOG_INFO, "Shutting down SysDB daemon "SDB_VERSION_STRING
                        SDB_VERSION_EXTRA" (pid %i)", (int)getpid());
-
-       fprintf(stderr, "Store dump:\n");
-       sdb_store_dump(stderr);
        return 0;
 } /* main */