diff options
author | Glenn L McGrath | 2004-07-23 01:10:22 +0000 |
---|---|---|
committer | Glenn L McGrath | 2004-07-23 01:10:22 +0000 |
commit | 4d405bbc05f79ac31d979ec26a180d3ee9236a82 (patch) | |
tree | b11c6586440c1245d322f56080edf17539a7a4f0 | |
parent | 5529b7bb874396af53552cf12e3e354693350ba2 (diff) | |
download | busybox-4d405bbc05f79ac31d979ec26a180d3ee9236a82.zip busybox-4d405bbc05f79ac31d979ec26a180d3ee9236a82.tar.gz |
Patch from Manousaridis Angelos to bring dhclient down more elegently
-rw-r--r-- | networking/ifupdown.c | 3 |
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")) { |