github.com/searKing/golang/go@v1.2.117/os/signal_posix.go (about)

     1  // Copyright 2020 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !windows
     6  
     7  package os
     8  
     9  import (
    10  	"os"
    11  	"syscall"
    12  )
    13  
    14  var ShutdownSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}