Fix locking error.

git-svn-id: file:///svn/unbound/trunk@1522 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-03-12 13:14:40 +00:00
parent ac4535d4e5
commit 159d59a3dc
2 changed files with 2 additions and 1 deletions

View file

@ -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`

View 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.