From db55225e2ee80b8c0225f0d432a472173c8804ae Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Mon, 22 Aug 2016 22:42:16 +1000 Subject: [PATCH] * daemon.c : fix termination --- src/daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daemon.c b/src/daemon.c index 6c37e05..d7ef281 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -375,9 +375,11 @@ int main(int argc, char *argv[]) { f2b_csocket_poll(opts.csock, f2b_cmsg_process); sleep(1); if (state == logrotate && strcmp(opts.logdest, "file") == 0) { + state = run; f2b_log_to_file(opts.logfile_path); } if (state == reconfig) { + state = run; if (f2b_config_load(&config, opts.config_path, true)) { jails_stop(jails); if (config.defaults) @@ -388,7 +390,6 @@ int main(int argc, char *argv[]) { } f2b_config_free(&config); } - state = run; } f2b_csocket_destroy(opts.csock, opts.csocket_path);