mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-22 16:54:25 +01:00
cli: Backtrace on SIGUSR1
Rework the signal handling code so that if debug is enabled and a `SIGUSR1` signal is received, backtrace to the system log but continue to run. Added some basic tests for the signal handling code. Fixes #241. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -470,6 +470,7 @@ func loadConfiguration(configPath string, ignoreLogging bool) (resolvedConfigPat
|
||||
}
|
||||
|
||||
if tomlConf.Runtime.Debug {
|
||||
debug = true
|
||||
crashOnError = true
|
||||
} else {
|
||||
// If debug is not required, switch back to the original
|
||||
|
||||
Reference in New Issue
Block a user