mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-24 21:09:30 +01:00
don't reference SIGUSR1 on windows (#2018)
This commit is contained in:
parent
238407c70e
commit
a052b82c78
@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
//go:build !plan9 && !windows
|
||||
|
||||
// Copyright (c) 2020 Shivaram Lingamneni
|
||||
// released under the MIT license
|
||||
|
@ -1,5 +1,4 @@
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
// Copyright (c) 2020 Shivaram Lingamneni
|
||||
// released under the MIT license
|
||||
|
23
irc/utils/signals_windows.go
Normal file
23
irc/utils/signals_windows.go
Normal file
@ -0,0 +1,23 @@
|
||||
//go:build windows
|
||||
|
||||
// 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,
|
||||
}
|
||||
|
||||
// no SIGUSR1 on windows
|
||||
ServerTracebackSignals []os.Signal
|
||||
)
|
Loading…
Reference in New Issue
Block a user