github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/pkg/signal/signal_windows.go (about)

     1  package signal // import "github.com/docker/docker/pkg/signal"
     2  
     3  import (
     4  	"syscall"
     5  )
     6  
     7  // Signals used in cli/command (no windows equivalent, use
     8  // invalid signals so they don't get handled)
     9  const (
    10  	SIGCHLD  = syscall.Signal(0xff)
    11  	SIGWINCH = syscall.Signal(0xff)
    12  	SIGPIPE  = syscall.Signal(0xff)
    13  	// DefaultStopSignal is the syscall signal used to stop a container in windows systems.
    14  	DefaultStopSignal = "15"
    15  )
    16  
    17  // SignalMap is a map of "supported" signals. As per the comment in GOLang's
    18  // ztypes_windows.go: "More invented values for signals". Windows doesn't
    19  // really support signals in any way, shape or form that Unix does.
    20  //
    21  // We have these so that docker kill can be used to gracefully (TERM) and
    22  // forcibly (KILL) terminate a container on Windows.
    23  var SignalMap = map[string]syscall.Signal{
    24  	"KILL": syscall.SIGKILL,
    25  	"TERM": syscall.SIGTERM,
    26  }