herald.go/signalsigterm.go

19 lines
490 B
Go
Raw Normal View History

2022-03-07 21:26:25 +01:00
// Copyright (c) 2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package main
import (
"os"
"syscall"
)
// initsignals sets the signals to be caught by the signal handler
2022-03-07 21:26:25 +01:00
func initsignals() {
interruptSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}
}