signal_unix.go 701 B

123456789101112131415161718192021
  1. // +build !windows
  2. package signal
  3. import (
  4. "syscall"
  5. )
  6. // Signals used in cli/command (no windows equivalent, use
  7. // invalid signals so they don't get handled)
  8. const (
  9. // SIGCHLD is a signal sent to a process when a child process terminates, is interrupted, or resumes after being interrupted.
  10. SIGCHLD = syscall.SIGCHLD
  11. // SIGWINCH is a signal sent to a process when its controlling terminal changes its size
  12. SIGWINCH = syscall.SIGWINCH
  13. // SIGPIPE is a signal sent to a process when a pipe is written to before the other end is open for reading
  14. SIGPIPE = syscall.SIGPIPE
  15. // DefaultStopSignal is the syscall signal used to stop a container in unix systems.
  16. DefaultStopSignal = "SIGTERM"
  17. )