diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 19:02:58 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 19:02:58 -0400 |
commit | 4e408262bdfccd1401068aea546ff7f1bd96d06b (patch) | |
tree | 935fd1f9679e218043d2e781920c77cbc66e474a /etc | |
parent | b1a20203cd7da2b319ffe79b25655b3cc0966d18 (diff) | |
download | pfsense-4e408262bdfccd1401068aea546ff7f1bd96d06b.zip pfsense-4e408262bdfccd1401068aea546ff7f1bd96d06b.tar.gz |
Supress sem_ errors.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index cc785f0..8138196 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -121,6 +121,9 @@ function unlock($cfglckkey = 0) { if (!$cfglckkey) return; + // Rely on or own logging for errors here. + ini_set('error_reporting', E_NONE); + if (!sem_release($cfglckkey)) log_error("WARNING: unlock() - Could not unlock lock."); else { @@ -131,6 +134,8 @@ function unlock($cfglckkey = 0) { ini_set('error_reporting', E_ALL & ~E_NOTICE); } $cfglckkeyconsumers--; + + ini_set('error_reporting', E_ALL & ~E_NOTICE); } function is_module_loaded($module_name) { @@ -988,4 +993,4 @@ function isAjax() { } -?> +?>
\ No newline at end of file |