1
0
Fork 0
forked from External/ergo

move signals code to utils/

This commit is contained in:
Shivaram Lingamneni 2021-09-19 04:02:44 -04:00
parent 3cf1583aed
commit b0f412538c
3 changed files with 4 additions and 4 deletions

21
irc/utils/signals.go Normal file
View file

@ -0,0 +1,21 @@
//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,
}
)