1
0
Fork 0
forked from External/ergo

don't reference SIGUSR1 on windows (#2018)

This commit is contained in:
Shivaram Lingamneni 2022-12-17 21:15:55 -08:00 committed by GitHub
parent 238407c70e
commit a052b82c78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 3 deletions

View 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
)