summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-23 01:34:06 +0000
committergVisor bot <gvisor-bot@google.com>2019-08-23 01:34:06 +0000
commit8b90ccd7b2ca18488329edee6e37e73f141a28f2 (patch)
tree1c3da7aa3aaabd35cfa418ee876fd082402bb4e6 /runsc
parent19bb89b9be83cf45ff83a8aa0f5dbf0da30d579c (diff)
parentf225fdbbe77c2017225517adcf67df70fcf8e36e (diff)
Merge f225fdbb (automated)
Diffstat (limited to 'runsc')
-rw-r--r--runsc/main.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/runsc/main.go b/runsc/main.go
index e864118b2..c61583441 100644
--- a/runsc/main.go
+++ b/runsc/main.go
@@ -117,13 +117,6 @@ func main() {
// All subcommands must be registered before flag parsing.
flag.Parse()
- if *testOnlyAllowRunAsCurrentUserWithoutChroot {
- // SIGTERM is sent to all processes if a test exceeds its
- // timeout and this case is handled by syscall_test_runner.
- log.Warningf("Block the TERM signal. This is only safe in tests!")
- signal.Ignore(syscall.SIGTERM)
- }
-
// Are we showing the version?
if *showVersion {
// The format here is the same as runc.
@@ -265,6 +258,13 @@ func main() {
log.Infof("\t\tStrace: %t, max size: %d, syscalls: %s", conf.Strace, conf.StraceLogSize, conf.StraceSyscalls)
log.Infof("***************************")
+ if *testOnlyAllowRunAsCurrentUserWithoutChroot {
+ // SIGTERM is sent to all processes if a test exceeds its
+ // timeout and this case is handled by syscall_test_runner.
+ log.Warningf("Block the TERM signal. This is only safe in tests!")
+ signal.Ignore(syscall.SIGTERM)
+ }
+
// Call the subcommand and pass in the configuration.
var ws syscall.WaitStatus
subcmdCode := subcommands.Execute(context.Background(), conf, &ws)