Issue message when adding an IP address

Don't die on lockfile timeout


git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@148 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep
2002-07-23 23:09:14 +00:00
parent 1412f0d698
commit 621e8df85b
2 changed files with 4 additions and 3 deletions

View File

@ -124,7 +124,7 @@ mutex_on()
[ -d $STATEDIR ] || mkdir -p $STATEDIR
if qt which lockfile; then
lockfile -030 -r1 ${lockf} || exit 2
lockfile -030 -r1 ${lockf} || rm -f ${lockf}
else
while [ -f ${lockf} -a ${try} -lt ${max} ] ; do
sleep ${int}
@ -136,7 +136,7 @@ mutex_on()
echo $$ > ${lockf}
else
echo "Giving up on lock file ${lockf}" >&2
exit 2
rm -f ${lockf}
fi
fi
}