summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-27 19:03:59 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-27 19:03:59 -0400
commitf05d33ceaf91dd5932f8856324adf9615cd43b76 (patch)
treea6b815285320a3a7d8dd3aa4f5f14fcdb45e7b13 /etc
parent4e90019b9eeab81e1e47bad3cc37269dc9164d4f (diff)
downloadpfsense-f05d33ceaf91dd5932f8856324adf9615cd43b76.zip
pfsense-f05d33ceaf91dd5932f8856324adf9615cd43b76.tar.gz
Surpress sem_ errors
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index f85f804..8a19b04 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -376,6 +376,8 @@ function unlock($cfglckkey = 0) {
if (!$cfglckkey)
return;
+ ini_set('error_reporting', E_NONE);
+
if (!sem_release($cfglckkey))
log_error("WARNING: unlock() - Could not unlock lock.");
else {
@@ -386,6 +388,8 @@ function unlock($cfglckkey = 0) {
ini_set('error_reporting', E_ALL & ~E_NOTICE);
}
$cfglckkeyconsumers--;
+
+ ini_set('error_reporting', E_ALL & ~E_NOTICE);
}
/* wrapper for exec() */
OpenPOWER on IntegriCloud