← Commit list

d1431073d

Glenn L McGrath
Glenn L McGrath
2002-11-19
FAILED Duration: 6s

Subject

Dont use xargs

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ifupdown.c+2 -2
@@ -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")) {