forked from extern/shorewall_code
Improve handling of mutex contention when 'lockfile' is installed.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e431d5ab53
commit
2f56caf8fd
@ -755,7 +755,7 @@ mutex_on()
|
||||
fi
|
||||
|
||||
if qt mywhich lockfile; then
|
||||
lockfile -${MUTEX_TIMEOUT} -r1 ${lockf}
|
||||
lockfile -s 1 -l ${MUTEX_TIMEOUT} ${lockf}
|
||||
chmod u+w ${lockf}
|
||||
echo $$ > ${lockf}
|
||||
chmod u-w ${lockf}
|
||||
|
Loading…
Reference in New Issue
Block a user