Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

signal: Backtrace on SIGUSR1 #79

Merged
merged 6 commits into from
May 11, 2018

Commits on May 11, 2018

  1. tests: Fix TestShimOps

    Changed `TestShimOps()` to wait for the go routines started by
    `proxyStdio()` to end. Without this fix, `go test` fails with a data
    race panic.
    
    Signed-off-by: James O. D. Hunt <[email protected]>
    jodh-intel committed May 11, 2018
    Configuration menu
    Copy the full SHA
    2503995 View commit details
    Browse the repository at this point in the history
  2. signal: Rename fatal.go to signals.go

    The fatal file is going to also deal with non-fatal signals so rename
    it.
    
    Signed-off-by: James O. D. Hunt <[email protected]>
    jodh-intel committed May 11, 2018
    Configuration menu
    Copy the full SHA
    348eb10 View commit details
    Browse the repository at this point in the history
  3. main: Enable debug if log level is debug

    The debug option is now auto-enabled if the user specifies the debug
    log level.
    
    Signed-off-by: James O. D. Hunt <[email protected]>
    jodh-intel committed May 11, 2018
    Configuration menu
    Copy the full SHA
    2d5d91e View commit details
    Browse the repository at this point in the history
  4. logging: Remove unnecessary logging argument

    Don't pass an empty string to the logger as it is not required.
    
    Signed-off-by: James O. D. Hunt <[email protected]>
    jodh-intel committed May 11, 2018
    Configuration menu
    Copy the full SHA
    041690d View commit details
    Browse the repository at this point in the history
  5. signal: Send fatal signal to workload before dying

    A signal that the shim considers as fatal should be forwarded to the
    container before being handled by the shim (to ensure the former also
    receives it).
    
    Signed-off-by: James O. D. Hunt <[email protected]>
    jodh-intel committed May 11, 2018
    Configuration menu
    Copy the full SHA
    ef3858e View commit details
    Browse the repository at this point in the history
  6. signal: 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 kata-containers#76.
    
    Signed-off-by: James O. D. Hunt <[email protected]>
    jodh-intel committed May 11, 2018
    Configuration menu
    Copy the full SHA
    bae08c9 View commit details
    Browse the repository at this point in the history