]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix daemonising when on IPV4LL.
authorRoy Marples <roy@marples.name>
Mon, 21 Apr 2008 23:08:43 +0000 (23:08 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Apr 2008 23:08:43 +0000 (23:08 +0000)
client.c

index 48d17ac7b47f433a4d6a4c4db2e679af71daa023..9e9ca1d25364a0b164f3e301e50e39ed32b5e981 100644 (file)
--- 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;