]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix locking error.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Mar 2009 13:14:40 +0000 (13:14 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Mar 2009 13:14:40 +0000 (13:14 +0000)
git-svn-id: file:///svn/unbound/trunk@1522 be551aaa-1e26-0410-a405-d3ace91eadb9

contrib/unbound_munin_
doc/Changelog

index 82ce8982c2c3b4761b43c561e6ebc99e080c38cc..dab296e558a225b8f169586746feb0733883fc92 100755 (executable)
@@ -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`
index c0456f0c70725a625ac30f3e304b55aaa7eb52e0..67a27544682c738dcac431b90268d278625fe44b 100644 (file)
@@ -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.