Make certain that udhcp shuts down the interface
authorEric Andersen <andersen@codepoet.org>
Mon, 26 Jul 2004 12:05:44 +0000 (12:05 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 26 Jul 2004 12:05:44 +0000 (12:05 -0000)
networking/ifupdown.c

index 95d78ea469445735f1bb29fe36935776598cf40d..276ca5f22426b17c5f99545754532d0fc51d8ff2 100644 (file)
@@ -565,7 +565,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
        int result = 0;
        if (execable("/sbin/udhcpc")) {
                execute("kill -USR2 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
-               execute("kill -9 `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")) {
@@ -573,7 +573,6 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
        } else if (execable("/sbin/dhcpcd")) {
                result = execute("dhcpcd -k %iface%", ifd, exec);
        }
-       static_down(ifd, exec);
        return (result || bootp_down(ifd, exec));
 }