Skip to content
GitLab
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
094db2ba
Commit
094db2ba
authored
Sep 17, 2003
by
Robert Ricci
Browse files
Fix and off-by-one error in the $MAX_CHILDREN code.
parent
2cb6b386
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/vnode_setup.in
View file @
094db2ba
...
...
@@ -263,7 +263,7 @@ while (1) {
#
# There are more free slots
#
if
((
$children
<
$MAX_CHILDREN
)
&&
@vnodes
)
{
if
((
$children
<
=
$MAX_CHILDREN
)
&&
@vnodes
)
{
#
# Look for a vnode that is not on a pnode we're already working on
#
...
...
@@ -377,12 +377,9 @@ while (1) {
elsif
(
$exitstatus
==
15
)
{
print
STDERR
"
$vnode
is wedged.
\n
"
if
$debug
;
}
# Send mail to testbed-ops about it
SENDMAIL
(
$TBOPS
,
"
Virtual Node
$vnode
$mode
failure
",
"
Virtual node
$vnode
$mode
(on physical node
$pnode
) in pid/eid
\n
"
.
"
$pid
/
$eid
has failed! Exit status was
$exitstatus
.
\n
");
push
@failed_nodes
,
[
$vnode
,
$pnode
,
$mode
,
$exitstatus
];
if
(
!
$killmode
)
{
warn
("
*** $0:
\n
"
.
"
Virtual node
$vnode
setup failure!
\n
");
...
...
@@ -402,6 +399,17 @@ while (1) {
}
}
#
# Send mail to testbed-ops about failed nodes
#
if
(
@failed_nodes
)
{
my
$failed_lines
=
join
("
\n
",
map
{
join
("
\t
",
@
{
$_
})
}
@failed_nodes
);
SENDMAIL
(
$TBOPS
,
"
Virtual Node failure for
$pid
/
$eid
",
"
The following virtual nodes failed:
\n
"
.
"
vnode
\t\t
pnode
\t\t
mode
\t
exit status
\n
"
.
$failed_lines
);
}
if
(
$killmode
)
{
print
STDOUT
"
Vnode teardown finished.
\n
";
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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