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
6a029369
Commit
6a029369
authored
Jul 02, 2003
by
Leigh B. Stoller
Browse files
Fix minor bug; was losing the exit status of the parser, so wrapper
was not properly kicking the NS file back to the user.
parent
861dcadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/parse.proxy.in
View file @
6a029369
...
...
@@ -165,12 +165,13 @@ if (! $pid) {
# Parent waits.
#
waitpid
(
$pid
,
0
);
my
$exit_status
=
$?
>>
8
;
#
# If the child was KILLed, then it overran its time limit.
# Send email. Otherwise, exit with result of child.
#
if
(
(
$?
>>
8
)
==
SIGKILL
)
{
if
(
$exit_status
==
SIGKILL
)
{
my
$msg
=
"
Parser Exceeded CPU Limit
";
SENDMAIL
(
$TBOPS
,
"
Parser Exceeded CPU Limit
",
$msg
,
...
...
@@ -185,4 +186,5 @@ if (($? >> 8) == SIGKILL) {
if
(
-
d
$tempdir
)
{
system
("
/bin/rm -r
$tempdir
");
}
exit
(
$?
>>
8
);
exit
(
$exit_status
);
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