diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-05-08 19:58:22 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-05-08 19:58:22 +0000 |
commit | feed9f8a392545c18cb5742a8c4c0051dce7b4a0 (patch) | |
tree | 9c9f9f3017f74987553384709ca458c62d4e50a3 /etc | |
parent | 1512337f7bdd1213036840479c94d400647d96e1 (diff) | |
download | pfsense-feed9f8a392545c18cb5742a8c4c0051dce7b4a0.zip pfsense-feed9f8a392545c18cb5742a8c4c0051dce7b4a0.tar.gz |
Make it work.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 8 |
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--; |