From 75333cf97568bd87ccbbb0d276ff3085bb22cd6a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 6 Mar 2005 03:51:46 +0000 Subject: [PATCH] Recover from hung pfctl --- usr/local/www/firewall_shaper_queues.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php index cfe58f7268..4f0adf93e5 100755 --- a/usr/local/www/firewall_shaper_queues.php +++ b/usr/local/www/firewall_shaper_queues.php @@ -196,9 +196,10 @@ if ($_GET['act'] == "del") { - 1) { + mwexec("/usr/bin/killall -9 pfctl php"); + exit; + } + $stat_line_split = split("\|", $stats_line); $packet_sampled = intval($stat_line_split[2]); $speed = $stat_line_split[1]; $borrows = intval($stat_line_split[3]); + echo "