]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
renewing a lease should not cause dhcpcd to exit.
authorRoy Marples <roy@marples.name>
Tue, 22 Jan 2008 16:54:38 +0000 (16:54 +0000)
committerRoy Marples <roy@marples.name>
Tue, 22 Jan 2008 16:54:38 +0000 (16:54 +0000)
client.c

index 47c72920d7e240b599965af7fd82f243c3a00302..d74d02b47a24bf55321035ba82de15014b5ad881 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1009,7 +1009,9 @@ int dhcp_run (const options_t *options, int *pidfd)
 
                /* We should always handle our signals first */
                if ((sig = (signal_read (&rset))) != -1) {
-                       if (! handle_signal (sig, state, options))
+                       if (handle_signal (sig, state, options))
+                               retval = 0;
+                       else
                                retval = -1;
                } else if (retval == 0)
                        retval = handle_timeout (state, options);