decred.org/dcrwallet/v3@v3.1.0/signal_unix.go (about)

     1  // Copyright (c) 2016 The btcsuite developers
     2  // Copyright (c) 2021 The Decred developers
     3  // Use of this source code is governed by an ISC
     4  // license that can be found in the LICENSE file.
     5  
     6  //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
     7  
     8  package main
     9  
    10  import (
    11  	"os"
    12  	"syscall"
    13  )
    14  
    15  func init() {
    16  	signals = []os.Signal{
    17  		os.Interrupt,
    18  		syscall.SIGTERM,
    19  		syscall.SIGHUP,
    20  	}
    21  }