Don't reconfig after each query after a manual reload.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 5 Oct 2008 21:33:56 +0000 (23:33 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 5 Oct 2008 21:33:56 +0000 (23:33 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
common/server.c

index 9f0681b..ea1df31 100644 (file)
@@ -141,6 +141,7 @@ int server_loop(start_client_t starter, delete_client_t deleter,
         int n;
 
         if (sighup && refresh) {
+            sighup = false;
             if (!refresh(config)) {
                 crit("error while refreshing configuration");
                 return EXIT_FAILURE;