github.com/mutagen-io/mutagen@v0.18.0-rc1/cmd/signals.go (about)

     1  package cmd
     2  
     3  import (
     4  	"os"
     5  	"syscall"
     6  )
     7  
     8  // TerminationSignals are those signals which Mutagen considers to be requesting
     9  // termination. Certain other signals that also request termination (such as
    10  // SIGABRT) are intentionally ignored because they're handled by the Go runtime
    11  // and have special behavior (such as dumping a stack trace). Both SIGINT and
    12  // SIGTERM are emulated on Windows (SIGINT on Ctrl-C and Ctrl-Break and SIGTERM
    13  // on CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, and CTRL_SHUTDOWN_EVENT).
    14  var TerminationSignals = []os.Signal{
    15  	syscall.SIGINT,
    16  	syscall.SIGTERM,
    17  }