summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2004-07-23 01:10:22 +0000
committerGlenn L McGrath2004-07-23 01:10:22 +0000
commit4d405bbc05f79ac31d979ec26a180d3ee9236a82 (patch)
treeb11c6586440c1245d322f56080edf17539a7a4f0
parent5529b7bb874396af53552cf12e3e354693350ba2 (diff)
downloadbusybox-4d405bbc05f79ac31d979ec26a180d3ee9236a82.zip
busybox-4d405bbc05f79ac31d979ec26a180d3ee9236a82.tar.gz
Patch from Manousaridis Angelos to bring dhclient down more elegently
-rw-r--r--networking/ifupdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 9daa0f5..276ca5f 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -564,7 +564,8 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
{
int result = 0;
if (execable("/sbin/udhcpc")) {
- execute("kill -9 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
+ execute("kill -USR2 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
+ execute("kill -TERM `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
} else if (execable("/sbin/pump")) {
result = execute("pump -i %iface% -k", ifd, exec);
} else if (execable("/sbin/dhclient")) {