aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2011-07-15 16:42:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-07-15 16:42:21 -0700
commitf53d99f1bb925b332a2abbca5abd463795508a50 (patch)
tree67e0e7c1f16549a08521439225dae6d677e0c178
parentd870426cf67e614e4cb938f9e66e00eeb57febc4 (diff)
parent0c4a89bb5e3205e47085b93ffec210778e474508 (diff)
downloadexternal_dhcpcd-f53d99f1bb925b332a2abbca5abd463795508a50.zip
external_dhcpcd-f53d99f1bb925b332a2abbca5abd463795508a50.tar.gz
external_dhcpcd-f53d99f1bb925b332a2abbca5abd463795508a50.tar.bz2
am 0c4a89bb: Fix dhcp renew behavior
* commit '0c4a89bb5e3205e47085b93ffec210778e474508': Fix dhcp renew behavior
-rw-r--r--dhcpcd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index e984ceb..791f513 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1474,6 +1474,12 @@ handle_signal(_unused void *arg)
syslog(LOG_INFO, "received SIGTERM, stopping");
break;
case SIGALRM:
+#ifdef ANDROID
+ syslog(LOG_INFO, "received SIGALRM, renewing");
+ for (ifp = ifaces; ifp; ifp = ifp->next) {
+ start_renew(ifp);
+ }
+#else
syslog(LOG_INFO, "received SIGALRM, rebinding");
for (i = 0; i < ifac; i++)
free(ifav[i]);
@@ -1495,6 +1501,7 @@ handle_signal(_unused void *arg)
options = ifo->options;
free_options(ifo);
reconf_reboot(1, 0, NULL, 0);
+#endif
return;
case SIGHUP:
syslog(LOG_INFO, "received SIGHUP, releasing");