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
fce0f762
Commit
fce0f762
authored
Sep 18, 2001
by
Leigh B. Stoller
Browse files
Check exit status of endexp. On error, leave things is a better state,
and send proper email status.
parent
b6bca670
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/batch_daemon.in
View file @
fce0f762
...
...
@@ -412,6 +412,15 @@ sub endexp($)
my
(
%exphash
)
=
@_
;
system
("
$endexp
-b
$pid
$eid
");
my
$exit_status
=
$?
>>
8
;
if
(
$exit_status
)
{
#
# TB admin is going to have to clean up.
#
fatal
("
Terminating Batch Mode experiment
$pid
/
$eid
");
}
DBQueryWarn
("
DELETE from batch_experiments
"
.
"
WHERE eid='
$eid
' and pid='
$pid
'
");
email_status
("
Batch Mode experiment
$pid
/
$eid
has finished!
\n
");
...
...
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