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
fe05b8b2
Commit
fe05b8b2
authored
Dec 02, 2011
by
Leigh B Stoller
Browse files
Minor tweak to locking.
parent
a063f131
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/openvz/libvnode_openvz.pm
View file @
fe05b8b2
...
...
@@ -631,9 +631,8 @@ sub vz_vnodeCreate {
if
((
my
$locked
=
TBScriptLock
(
$imagelockname
,
TBSCRIPTLOCK_GLOBALWAIT
(),
1800
))
!=
TBSCRIPTLOCK_OKAY
())
{
# return 0
# if ($locked == TBSCRIPTLOCK_IGNORE());
print
STDERR
"
Could not get the
$imagelockname
lock after a long time!
\n
";
print
STDERR
"
Could not get the
$imagelockname
lock after a long time!
\n
";
return
-
1
;
}
...
...
@@ -713,9 +712,8 @@ sub vz_vnodeCreate {
if
((
my
$locked
=
TBScriptLock
(
$imagelockname
,
TBSCRIPTLOCK_GLOBALWAIT
(),
1800
))
!=
TBSCRIPTLOCK_OKAY
())
{
# return 0
# if ($locked == TBSCRIPTLOCK_IGNORE());
print
STDERR
"
Could not get the
$imagelockname
lock after a long time!
\n
";
print
STDERR
"
Could not get the
$imagelockname
lock after a long time!
\n
";
return
-
1
;
}
if
(
$DOLVM
)
{
...
...
Write
Preview
Markdown
is supported
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