From: Glenn L McGrath Date: Tue, 19 Nov 2002 09:58:56 +0000 (-0000) Subject: Dont use xargs X-Git-Tag: 1_00_pre1~435 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1431073d100bc0dbeafaacc161f11f21551eae6;p=oweals%2Fbusybox.git Dont use xargs --- diff --git a/networking/ifupdown.c b/networking/ifupdown.c index b0f526770..e4bfc3eb4 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -460,7 +460,7 @@ static int dhcp_up(interface_defn *ifd, execfn *exec) static int dhcp_down(interface_defn *ifd, execfn *exec) { if (execable("/sbin/dhclient")) { - if (!execute("cat /var/run/dhclient.%iface%.pid | xargs kill", ifd, exec)) { + if (!execute("kill -9 `cat /var/run/udhcpc.%iface%.pid`", ifd, exec)) { return(0); } } else if (execable("/sbin/pump")) { @@ -468,7 +468,7 @@ static int dhcp_down(interface_defn *ifd, execfn *exec) return(0); } } else if (execable("/sbin/udhcpc")) { - if (!execute("cat /var/run/udhcpc.%iface%.pid | xargs kill", ifd, exec)) { + if (!execute("kill -9 `cat /var/run/udhcpc.%iface%.pid`", ifd, exec)) { return(0); } } else if (execable("/sbin/dhcpcd")) {