AdGuardHome/internal/aghos/os_unix.go

23 lines
388 B
Go
Raw Normal View History

//go:build darwin || freebsd || linux || openbsd
package aghos
import (
"os"
"os/signal"
"golang.org/x/sys/unix"
)
2022-11-02 13:18:02 +00:00
func notifyReconfigureSignal(c chan<- os.Signal) {
signal.Notify(c, unix.SIGHUP)
}
func isReconfigureSignal(sig os.Signal) (ok bool) {
return sig == unix.SIGHUP
}
2023-09-07 15:13:48 +01:00
func sendShutdownSignal(_ chan<- os.Signal) {
// On Unix we are already notified by the system.
}