diff options
Diffstat (limited to 'runsc/boot/config.go')
-rw-r--r-- | runsc/boot/config.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runsc/boot/config.go b/runsc/boot/config.go index 2d89ad87e..b98e38ae9 100644 --- a/runsc/boot/config.go +++ b/runsc/boot/config.go @@ -198,10 +198,17 @@ type Config struct { // WatchdogAction sets what action the watchdog takes when triggered. WatchdogAction watchdog.Action - // PanicSignal register signal handling that panics. Usually set to + // PanicSignal registers signal handling that panics. Usually set to // SIGUSR2(12) to troubleshoot hangs. -1 disables it. + // + // PanicSignal takes precedence over TraceSignal. PanicSignal int + // TraceSignal registers signal handling that logs a traceback of all + // goroutines. Usually set to SIGUSR2(12) to troubleshoot hangs. -1 + // disables it. + TraceSignal int + // TestOnlyAllowRunAsCurrentUserWithoutChroot should only be used in // tests. It allows runsc to start the sandbox process as the current // user, and without chrooting the sandbox process. This can be @@ -228,5 +235,6 @@ func (c *Config) ToFlags() []string { "--strace-log-size=" + strconv.Itoa(int(c.StraceLogSize)), "--watchdog-action=" + c.WatchdogAction.String(), "--panic-signal=" + strconv.Itoa(c.PanicSignal), + "--trace-signal=" + strconv.Itoa(c.TraceSignal), } } |