mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-21 08:17:29 +08:00
ci cross-platform fix: make gateway reload/signal handling windows-safe with build-tagged helpers
This commit is contained in:
13
cmd/clawgo/signals_windows.go
Normal file
13
cmd/clawgo/signals_windows.go
Normal file
@@ -0,0 +1,13 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
import "os"
|
||||
|
||||
func gatewayNotifySignals() []os.Signal {
|
||||
return []os.Signal{os.Interrupt}
|
||||
}
|
||||
|
||||
func isGatewayReloadSignal(sig os.Signal) bool {
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user