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

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

parent c36f6eab
......@@ -129,9 +129,7 @@ usage()
# We need to serialize this script.
#
if (!$TESTMODE) {
if ((my $locked = TBScriptLock("nfsmfs", 1)) != TBSCRIPTLOCK_OKAY()) {
exit(0)
if ($locked == TBSCRIPTLOCK_IGNORE);
if ((my $locked = TBScriptLock("nfsmfs")) != TBSCRIPTLOCK_OKAY()) {
fatal("Could not get the lock after a long time!\n");
}
}
......
Markdown is supported
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