3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-01-10 04:02:52 +01:00
ergo/irc/utils/signals.go
Shivaram Lingamneni d17faf6bcb fix #1975
Provide a nondestructive stack trace dump option even when the http pprof
listener is disabled
2022-12-10 22:15:37 -08:00

26 lines
383 B
Go

//go:build !plan9
// +build !plan9
// Copyright (c) 2020 Shivaram Lingamneni
// released under the MIT license
package utils
import (
"os"
"syscall"
)
var (
// ServerExitSignals are the signals the server will exit on.
ServerExitSignals = []os.Signal{
syscall.SIGINT,
syscall.SIGTERM,
syscall.SIGQUIT,
}
ServerTracebackSignals = []os.Signal{
syscall.SIGUSR1,
}
)