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:
parent
ae7d69838e
commit
38c74f6418
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user