Handle SIGABRT properly

This commit is contained in:
Zachary Yedidia 2023-10-20 08:51:17 +02:00
parent 2a9a5afbb2
commit 9da6af91c8

View File

@ -361,7 +361,7 @@ func main() {
sigterm = make(chan os.Signal, 1)
sighup = make(chan os.Signal, 1)
signal.Notify(sigterm, syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT)
signal.Notify(sigterm, syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGABRT)
signal.Notify(sighup, syscall.SIGHUP)
// Here is the event loop which runs in a separate thread