diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-07-15 16:48:01 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-07-15 16:48:01 -0700 |
commit | 98bf139a07f34b42c5b5f935f48c981a103d965d (patch) | |
tree | b44969f4424fd22da0389530746ec96aa590b2a2 | |
parent | b502ba5be324c076834296d979764ecef6ab9cda (diff) | |
parent | f53d99f1bb925b332a2abbca5abd463795508a50 (diff) | |
download | external_dhcpcd-98bf139a07f34b42c5b5f935f48c981a103d965d.zip external_dhcpcd-98bf139a07f34b42c5b5f935f48c981a103d965d.tar.gz external_dhcpcd-98bf139a07f34b42c5b5f935f48c981a103d965d.tar.bz2 |
am f53d99f1: am 0c4a89bb: Fix dhcp renew behavior
* commit 'f53d99f1bb925b332a2abbca5abd463795508a50':
Fix dhcp renew behavior
-rw-r--r-- | dhcpcd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); |