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
ca00472f
Commit
ca00472f
authored
Sep 27, 2012
by
Leigh B Stoller
Browse files
Minor changes to debugging output.
parent
b0510f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/mkvnode.pl
View file @
ca00472f
...
...
@@ -383,6 +383,8 @@ if (scalar(@tmp) && exists($tmp[0]->{"WHAT"})) {
sub
handler
($)
{
my
(
$signame
)
=
@_
;
print
STDERR
"
mkvnode (
$PID
) caught a SIG
${signame}
!
\n
";
# No more interruptions during teardown.
$SIG
{
INT
}
=
'
IGNORE
';
$SIG
{
USR1
}
=
'
IGNORE
';
...
...
@@ -419,7 +421,8 @@ sub handler ($) {
mysystem
("
touch
$RUNNING_FILE
")
if
(
$leaveme
&&
-
e
"
$RUNNING_FILE
");
MyFatal
("
mkvnode (
$PID
) caught a SIG
${signame}
! container
$str
");
print
STDERR
"
Container is being
$str
\n
";
MyFatal
("
Container has been
$str
by
$signame
");
}
#
...
...
@@ -578,16 +581,16 @@ sub callback($)
if
(
defined
(
VNCONFIG
('
SSHDPORT
'))
&&
VNCONFIG
('
SSHDPORT
')
ne
"")
{
my
$sshdport
=
VNCONFIG
('
SSHDPORT
');
system
("
echo '# EmulabJail' >>
$path
/etc/ssh/sshd_config
");
system
("
echo 'Port
$sshdport
' >>
$path
/etc/ssh/sshd_config
");
my
system
2
("
echo '# EmulabJail' >>
$path
/etc/ssh/sshd_config
");
my
system
2
("
echo 'Port
$sshdport
' >>
$path
/etc/ssh/sshd_config
");
if
(
VNCONFIG
('
CTRLIP
')
ne
$ext_ctrlip
)
{
system
("
echo 'Port 22' >>
$path
/etc/ssh/sshd_config
");
my
system
2
("
echo 'Port 22' >>
$path
/etc/ssh/sshd_config
");
}
}
}
# Localize the timezone.
system
("
cp -fp /etc/localtime
$path
/etc
");
my
system
2
("
cp -fp /etc/localtime
$path
/etc
");
return
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