From 38c74f6418f1b88c0265915b7a82e1791ae33fda Mon Sep 17 00:00:00 2001 From: Matheus Degiovani Date: Thu, 17 Sep 2020 12:27:40 -0300 Subject: [PATCH] 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. --- signal/signal.go | 1 - 1 file changed, 1 deletion(-) diff --git a/signal/signal.go b/signal/signal.go index 927931fdd..576a644f1 100644 --- a/signal/signal.go +++ b/signal/signal.go @@ -42,7 +42,6 @@ func Intercept() error { signalsToCatch := []os.Signal{ os.Interrupt, os.Kill, - syscall.SIGABRT, syscall.SIGTERM, syscall.SIGQUIT, }