tracker/cmd/chihaya/signal_unix.go
Jimmy Zelinskie 129aac230a cmd: use os.SignalContext for signal management
This fixes a `go vet` failure for using an unbuffered channel with
os.Signal. This also simplifies platform-specific code.

GoFmt added new forward-compatible build tags.
2022-01-02 15:26:05 -05:00

13 lines
244 B
Go

//go:build darwin || freebsd || linux || netbsd || openbsd || dragonfly || solaris
// +build darwin freebsd linux netbsd openbsd dragonfly solaris
package main
import (
"os"
"syscall"
)
var ReloadSignals = []os.Signal{
syscall.SIGUSR1,
}