From: Roy Marples Date: Mon, 21 Apr 2008 23:08:43 +0000 (+0000) Subject: Fix daemonising when on IPV4LL. X-Git-Tag: v4.0.2~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac62ece333065646bf5ffa05b2afb9b7f8b78937;p=thirdparty%2Fdhcpcd.git Fix daemonising when on IPV4LL. --- diff --git a/client.c b/client.c index 48d17ac7..9e9ca1d2 100644 --- a/client.c +++ b/client.c @@ -218,7 +218,7 @@ daemonise(struct if_state *state, const struct options *options) if (pid == 0) { state->options |= DHCPCD_DAEMONISED; return 0; - } + } state->options |= DHCPCD_PERSISTENT | DHCPCD_FORKED; return -1; @@ -869,7 +869,8 @@ handle_timeout(struct if_state *state, const struct options *options) if (configure(iface, reason, state->dhcp, state->old_dhcp, lease, options, 1) == 0) - daemonise(state, options); + if (daemonise(state, options) == -1) + return -1; state->timeout = lease->renewaltime; state->xid = 0; return 0;