github.com/btcsuite/btcd@v0.24.0/signalsigterm.go (about) 1 // Copyright (c) 2016 The btcsuite developers 2 // Use of this source code is governed by an ISC 3 // license that can be found in the LICENSE file. 4 5 //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 // +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 interruptSignals = []os.Signal{os.Interrupt, syscall.SIGTERM} 17 }