mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +02:00
signal: initialize interceptor explictly
This commit is contained in:
3
lnd.go
3
lnd.go
@ -116,6 +116,9 @@ type rpcListeners func() ([]net.Listener, func(), []grpc.ServerOption, error)
|
||||
// created in the top-level scope of a main method aren't executed if os.Exit()
|
||||
// is called.
|
||||
func Main(lisCfg ListenerCfg) error {
|
||||
// Hook interceptor for os signals.
|
||||
signal.Intercept()
|
||||
|
||||
// Load the configuration, and parse any command line options. This
|
||||
// function will also set up logging properly.
|
||||
loadedConfig, err := loadConfig()
|
||||
|
Reference in New Issue
Block a user