signal_unix.go 604 B

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