mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 10:35:32 +02:00
signal: initialize interceptor explictly
This commit is contained in:
@ -26,7 +26,8 @@ var (
|
||||
shutdownChannel = make(chan struct{})
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Intercept starts the interception of interrupt signals.
|
||||
func Intercept() {
|
||||
signalsToCatch := []os.Signal{
|
||||
os.Interrupt,
|
||||
os.Kill,
|
||||
|
Reference in New Issue
Block a user