github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/pkg/signal/signal_unix.go (about)

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