From 7617733534e10ed610714121429371fed9a9cfb1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 6 Mar 2005 02:28:28 +0000 Subject: * Kill any occurance of pfctl before invoking pfctl * Fix spelling mistake in comment --- etc/inc/pfsense-utils.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 0a66d6e..d8cc4c5 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -555,11 +555,12 @@ function resync_all_package_configs_bootup($show_message) { } /* - * gather_altq_queue_stats(): gater alq queue stats and return an array that + * gather_altq_queue_stats(): gather alq queue stats and return an array that * is queuename|qlength|measured_packets * NOTE: this commandt takes 5 seconds to run */ function gather_altq_queue_stats() { + mwexec("/usr/bin/killall pfctl"); $stats = `/sbin/pfctl -vvsq & sleep 5;killall pfctl 2>/dev/null`; $stats_array = split("\n", $stats); $queue_stats = array(); -- cgit v1.1