mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-13 05:37:29 +08:00
17 lines
257 B
Go
17 lines
257 B
Go
//go:build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func gatewayNotifySignals() []os.Signal {
|
|
return []os.Signal{os.Interrupt, syscall.SIGTERM, syscall.SIGHUP}
|
|
}
|
|
|
|
func isGatewayReloadSignal(sig os.Signal) bool {
|
|
return sig == syscall.SIGHUP
|
|
}
|