129aac230a
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.
13 lines
244 B
Go
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,
|
|
}
|