Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
f1834686
Commit
f1834686
authored
Sep 18, 2013
by
Leigh B Stoller
Browse files
Minor bug fix.
parent
548cb7e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/libtestbed.pm
View file @
f1834686
...
...
@@ -318,7 +318,7 @@ sub TBScriptLock($;$$$)
my
$ltype
=
(
$shared
?
LOCK_SH
:
LOCK_EX
);
while
(
flock
(
LOCK
,
$ltype
|
LOCK_NB
)
==
0
)
{
return
TBSCRIPTLOCK_WOULDBLOCK
()
if
(
$flags
&
TBSCRIPTLOCK_NONBLOCKING
());
if
(
defined
(
$flags
)
&&
(
$flags
&
TBSCRIPTLOCK_NONBLOCKING
())
)
;
print
"
Another
$token
is in progress (
${tries}
s). Waiting ...
\n
"
if
((
$tries
++
%
60
)
==
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment