From: Glenn L McGrath Date: Fri, 23 Jul 2004 01:10:22 +0000 (-0000) Subject: Patch from Manousaridis Angelos to bring dhclient down more elegently X-Git-Tag: 1_00_rc2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d405bbc05f79ac31d979ec26a180d3ee9236a82;p=oweals%2Fbusybox.git Patch from Manousaridis Angelos to bring dhclient down more elegently --- diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 9daa0f513..276ca5f22 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")) {