[BusyBox-cvs] CVS update of busybox/networking (ifupdown.c)

Glenn McGrath bug1 at codepoet.org
Fri Jul 23 01:10:23 UTC 2004


    Date: Thursday, July 22, 2004 @ 19:10:23
  Author: bug1
    Path: /var/cvs/busybox/networking

Modified: ifupdown.c (1.42 -> 1.43)

Patch from Manousaridis Angelos to bring dhclient down more elegently


Index: busybox/networking/ifupdown.c
diff -u busybox/networking/ifupdown.c:1.42 busybox/networking/ifupdown.c:1.43
--- busybox/networking/ifupdown.c:1.42	Wed Jul 21 17:56:31 2004
+++ busybox/networking/ifupdown.c	Thu Jul 22 19:10:22 2004
@@ -564,7 +564,8 @@
 {
 	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")) {



More information about the busybox-cvs mailing list