summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-14 21:42:21 +0200
committerSteven Barth <steven@midlink.org>2013-10-14 21:42:21 +0200
commit22de5ea8c4d776b69ae1d795cab784855f1581fd (patch)
tree7e9fc301371882b0f766860693be64e9948c8859 /src
parent1e59627ffd5ae9c56aa4cebb50625b80cdfe5d0b (diff)
Fix reload
Diffstat (limited to 'src')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index ebc6642..5bb1a0e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -466,7 +466,7 @@ static int set_interface(struct uci_section *s)
}
-static volatile bool do_reload = false;
+static volatile int do_reload = false;
static void set_stop(int signal)
{
uloop_end();
@@ -481,7 +481,7 @@ void odhcpd_run(void)
signal(SIGINT, set_stop);
do {
- do_reload = false;
+ do_reload = uloop_cancelled = false;
struct lease *l;
list_for_each_entry(l, &leases, head) {