mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-03 20:46:04 +02:00
signal: do not trap SIGABRT
SIGABRT is used by the Go runtime to forcefully terminate all goroutines, even if they are in a deadlocked state. It is useful in development (to get a glimpse of any potential race or hang conditions) and in production to forcefully terminate execution when a standard SIGQUIT won't do. This modifies the signal package to _not_ trap SIGABRT and let it be handled in the standard way by the runtime.
This commit is contained in:
@@ -42,7 +42,6 @@ func Intercept() error {
|
|||||||
signalsToCatch := []os.Signal{
|
signalsToCatch := []os.Signal{
|
||||||
os.Interrupt,
|
os.Interrupt,
|
||||||
os.Kill,
|
os.Kill,
|
||||||
syscall.SIGABRT,
|
|
||||||
syscall.SIGTERM,
|
syscall.SIGTERM,
|
||||||
syscall.SIGQUIT,
|
syscall.SIGQUIT,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user