diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 19:03:59 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 19:03:59 -0400 |
commit | f05d33ceaf91dd5932f8856324adf9615cd43b76 (patch) | |
tree | a6b815285320a3a7d8dd3aa4f5f14fcdb45e7b13 | |
parent | 4e90019b9eeab81e1e47bad3cc37269dc9164d4f (diff) | |
download | pfsense-f05d33ceaf91dd5932f8856324adf9615cd43b76.zip pfsense-f05d33ceaf91dd5932f8856324adf9615cd43b76.tar.gz |
Surpress sem_ errors
-rw-r--r-- | etc/inc/util.inc | 4 |
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() */ |