mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-20 07:17:29 +08:00
fix package
This commit is contained in:
16
cmd/signals_unix.go
Normal file
16
cmd/signals_unix.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user