signalsigterm.go 333 B

1234567891011121314151617
  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. // +build darwin dragonfly freebsd linux netbsd openbsd solaris
  5. package main
  6. import (
  7. "os"
  8. "syscall"
  9. )
  10. func init() {
  11. interruptSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}
  12. }