From: Roy Marples Date: Tue, 22 Jan 2008 16:54:38 +0000 (+0000) Subject: renewing a lease should not cause dhcpcd to exit. X-Git-Tag: v3.2.3~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0876454594adb1fb31eaeb1e615709ebfc7f4c94;p=thirdparty%2Fdhcpcd.git renewing a lease should not cause dhcpcd to exit. --- diff --git a/client.c b/client.c index 47c72920..d74d02b4 100644 --- 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);