Improve handling of mutex contention when 'lockfile' is installed.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-09-12 07:18:26 -07:00
parent e431d5ab53
commit 2f56caf8fd

View File

@ -755,7 +755,7 @@ mutex_on()
fi fi
if qt mywhich lockfile; then if qt mywhich lockfile; then
lockfile -${MUTEX_TIMEOUT} -r1 ${lockf} lockfile -s 1 -l ${MUTEX_TIMEOUT} ${lockf}
chmod u+w ${lockf} chmod u+w ${lockf}
echo $$ > ${lockf} echo $$ > ${lockf}
chmod u-w ${lockf} chmod u-w ${lockf}