diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-07-23 05:10:22 +0400 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-07-23 05:10:22 +0400 |
commit | 4d405bbc05f79ac31d979ec26a180d3ee9236a82 (patch) | |
tree | b11c6586440c1245d322f56080edf17539a7a4f0 /networking | |
parent | 5529b7bb874396af53552cf12e3e354693350ba2 (diff) |
Patch from Manousaridis Angelos to bring dhclient down more elegently
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 9daa0f513..276ca5f22 100644 --- 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")) { |