From ce66d4a4e5aa2f68cf46f9de9625e72dc495f1d3 Mon Sep 17 00:00:00 2001 From: marjohn56 Date: Tue, 24 Jan 2017 09:09:06 +0000 Subject: Update interfaces.inc --- src/etc/inc/interfaces.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/etc/inc/interfaces.inc') 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. } -- cgit v1.1