diff options
author | Ermal <eri@pfsense.org> | 2011-01-19 18:25:26 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-19 18:25:54 +0000 |
commit | bcfe4ae5add1ca60e35151e225fa207f6160efd7 (patch) | |
tree | 783efeeb5796d2d355bae4b42fd9c51bc7f2a27b /etc | |
parent | 1c4edc3c320a7750de670c1e7aa97cc5c622c9ef (diff) | |
download | pfsense-bcfe4ae5add1ca60e35151e225fa207f6160efd7.zip pfsense-bcfe4ae5add1ca60e35151e225fa207f6160efd7.tar.gz |
Ticket #259 trim the \n from the command output and return only the numeric part of it.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 97b59d8..a414bd7 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -952,7 +952,7 @@ function interface_bring_down($interface = "wan", $destroy = false) { case "dhcp": $pid = find_dhclient_process($realif); if($pid) - mwexec("kill {$pid}"); + mwexec("/bin/kill {$pid}"); sleep(1); unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf"); if(does_interface_exist("$realif")) { @@ -2451,7 +2451,7 @@ function find_dhclient_process($interface) { else $pid = 0; - return $pid; + return intval($pid); } function interface_configure($interface = "wan", $reloadall = false, $linkupevent = false) { |