summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authormarjohn56 <martin@queens-park.com>2017-01-24 09:09:06 +0000
committerGitHub <noreply@github.com>2017-01-24 09:09:06 +0000
commitce66d4a4e5aa2f68cf46f9de9625e72dc495f1d3 (patch)
tree05f51d294112bef4a2f35c10f815ff7ffa4f7b6f /src/etc/inc/interfaces.inc
parent5c803c910dd6c16e5563dbf13b0cbbbabe118e33 (diff)
downloadpfsense-ce66d4a4e5aa2f68cf46f9de9625e72dc495f1d3.zip
pfsense-ce66d4a4e5aa2f68cf46f9de9625e72dc495f1d3.tar.gz
Update interfaces.inc
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r--src/etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 74c3ffb..d7b0133 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -3052,8 +3052,8 @@ function kill_dhcp6client_process($interface,$norelease) {
/* to send the release, it will also clean up after itself */
// Debug - next line remove if not required
log_error("shutting down dhcp6c process");
- $killtype = isset($norelease) ? "-9" : "-15";
- mwexec("kill {$killtype} {$pid}");
+ $sig = (isset($norelease) ? SIGKILL : SIGTERM);
+ posix_kill($pid,$sig);
if(!isset($norelease)) {
sleep(2); //Allow dhcp6c to send releae and exit gracefully if needed.
}
OpenPOWER on IntegriCloud