github.com/jingleWang/moby@v1.13.1/pkg/signal/signal_windows.go (about)

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