From: Wouter Wijngaards Date: Thu, 12 Mar 2009 13:14:40 +0000 (+0000) Subject: Fix locking error. X-Git-Tag: release-1.3.0~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=159d59a3dcc154b74878d4a10139ec6d35c4f4ba;p=thirdparty%2Funbound.git Fix locking error. git-svn-id: file:///svn/unbound/trunk@1522 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/contrib/unbound_munin_ b/contrib/unbound_munin_ index 82ce8982c..dab296e55 100755 --- a/contrib/unbound_munin_ +++ b/contrib/unbound_munin_ @@ -124,7 +124,7 @@ get_state ( ) { # obtain lock for fetching the state # because there is a race condition in fetching and writing to file i=0 - while test ! -f $lock || test "`cat $lock`" != $$; do + while test ! -f $lock || test "`cat $lock 2>&1`" != $$; do while test -f $lock; do # wait i=`expr $i + 1` diff --git a/doc/Changelog b/doc/Changelog index c0456f0c7..67a275446 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 12 March 2009: Wouter - log to App.logs on windows prints executable identity. - fixup tests. + - munin plugin fix benign locking error printout. 11 March 2009: Wouter - winsock event handler resets WSAevents after signalled.