summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-08 19:20:28 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-08 19:20:28 +0000
commit9befcca76aad3e31be525f64afbe47b5d59bafb2 (patch)
tree01088c1bd0ab26aba780c802b729c83b4120bc8b
parent0027de0a544438f146cfc94f005fd6f4ba9f94d7 (diff)
downloadpfsense-9befcca76aad3e31be525f64afbe47b5d59bafb2.zip
pfsense-9befcca76aad3e31be525f64afbe47b5d59bafb2.tar.gz
Fix a lock leaking on CP.
-rw-r--r--etc/inc/captiveportal.inc5
-rwxr-xr-xusr/local/sbin/reset_slbd.sh12
2 files changed, 2 insertions, 15 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 751239c..411bdfc 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -902,9 +902,8 @@ function radius($username,$password,$clientip,$clientmac,$type) {
$auth_list,
$ruleno);
}
- else {
- captiveportal_unlock();
- }
+
+ captiveportal_unlock();
return $auth_list;
diff --git a/usr/local/sbin/reset_slbd.sh b/usr/local/sbin/reset_slbd.sh
deleted file mode 100755
index 72ad638..0000000
--- a/usr/local/sbin/reset_slbd.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-for items in `ps auxcwwl | awk '/slbd/{print $3}'|awk -F"." '{print $1}'`
-do
- if [ "$items" -gt "86" ]; then
- killall slbd
- sleep 2
- killall -9 slbd
- echo "Resetting slbd due to high cpu usage: ${items}%" | logger
- /usr/local/sbin/slbd -c/var/etc/slbd.conf -r5000
- fi
-done
OpenPOWER on IntegriCloud