projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5529b7b
)
Patch from Manousaridis Angelos to bring dhclient down more elegently
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 23 Jul 2004 01:10:22 +0000
(
01:10
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 23 Jul 2004 01:10:22 +0000
(
01:10
-0000)
networking/ifupdown.c
patch
|
blob
|
history
diff --git
a/networking/ifupdown.c
b/networking/ifupdown.c
index 9daa0f513789fa1eca2a8c6315d69d7fa4ac4817..276ca5f22426b17c5f99545754532d0fc51d8ff2 100644
(file)
--- 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")) {