Code

sysdbd: Forcefully terminate the frontend and backend loops.
authorSebastian Harl <sh@tokkee.org>
Fri, 6 Jun 2014 20:37:06 +0000 (22:37 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 6 Jun 2014 20:37:06 +0000 (22:37 +0200)
src/tools/sysdbd/main.c

index 3511a8a54643a1ea24a6dfda34c986c90d285e0e..96fe6a645459d79aff04a4d13f7f6153b094d685 100644 (file)
@@ -292,6 +292,8 @@ main_loop(void)
        }
 
        /* 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);