Improve lockfile arguments

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-08-21 11:28:45 -07:00
parent 56addf3d4c
commit 24aacd67e6
2 changed files with 2 additions and 6 deletions

View File

@ -121,10 +121,8 @@ mutex_on()
fi
if qt mywhich lockfile; then
lockfile -${MUTEX_TIMEOUT} -r1 ${lockf}
chmod u+w ${lockf}
lockfile -r${MUTEX_TIMEOUT} -s1 ${lockf}
echo $$ > ${lockf}
chmod u-w ${lockf}
else
while [ -f ${lockf} -a ${try} -lt ${MUTEX_TIMEOUT} ] ; do
sleep 1

View File

@ -125,10 +125,8 @@ mutex_on()
fi
if qt mywhich lockfile; then
lockfile -${MUTEX_TIMEOUT} -r1 ${lockf}
chmod u+w ${lockf}
lockfile -r${MUTEX_TIMEOUT} -s1 ${lockf}
echo $$ > ${lockf}
chmod u-w ${lockf}
else
while [ -f ${lockf} -a ${try} -lt ${MUTEX_TIMEOUT} ] ; do
sleep 1