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

@ -1,5 +1,4 @@
//go:build !plan9
// +build !plan9
//go:build !plan9 && !windows
// Copyright (c) 2020 Shivaram Lingamneni
// released under the MIT license

View File

@ -1,5 +1,4 @@
//go:build plan9
// +build plan9
// Copyright (c) 2020 Shivaram Lingamneni
// released under the MIT license

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
)