summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-08 19:58:22 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-08 19:58:22 +0000
commitfeed9f8a392545c18cb5742a8c4c0051dce7b4a0 (patch)
tree9c9f9f3017f74987553384709ca458c62d4e50a3
parent1512337f7bdd1213036840479c94d400647d96e1 (diff)
downloadpfsense-feed9f8a392545c18cb5742a8c4c0051dce7b4a0.zip
pfsense-feed9f8a392545c18cb5742a8c4c0051dce7b4a0.tar.gz
Make it work.
-rw-r--r--etc/inc/util.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index e1bc857..197e957 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -87,7 +87,7 @@ function config_unlock() {
}
/* lock configuration file */
-function lock($file) {
+function lock($lock) {
global $g, $cfglckkeyconsumers;
if (!$file)
@@ -102,7 +102,7 @@ function lock($file) {
sem_remove($cfglckkey);
return NULL;
} else if ($g['debug'])
- log_error("lock() - Got config lock.");
+ log_error("lock() - Got {$file} lock.");
return $cfglckkey;
}
@@ -115,10 +115,10 @@ function unlock($cfglckkey = 0) {
return;
if (!sem_release($cfglckkey))
- log_error("WARNING: unlock() - Could not unlock config lock.");
+ log_error("WARNING: unlock() - Could not unlock lock.");
else {
if ($g['debug'])
- log_error("Released config lock.");
+ log_error("Released lock.");
sem_remove($cfglckkey);
}
$cfglckkeyconsumers--;
OpenPOWER on IntegriCloud