Commit 4e3f8174 authored by Mike Hibler's avatar Mike Hibler
Browse files

We need an instance lock and not a global lock here.

parent c36f6eab
...@@ -129,9 +129,7 @@ usage() ...@@ -129,9 +129,7 @@ usage()
# We need to serialize this script. # We need to serialize this script.
# #
if (!$TESTMODE) { if (!$TESTMODE) {
if ((my $locked = TBScriptLock("nfsmfs", 1)) != TBSCRIPTLOCK_OKAY()) { if ((my $locked = TBScriptLock("nfsmfs")) != TBSCRIPTLOCK_OKAY()) {
exit(0)
if ($locked == TBSCRIPTLOCK_IGNORE);
fatal("Could not get the lock after a long time!\n"); fatal("Could not get the lock after a long time!\n");
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment