mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-06 15:18:57 +08:00
ci cross-platform fix: avoid syscall.SIGHUP usage on windows via build-tagged self-reload helper
This commit is contained in:
12
pkg/nodes/reload_unix.go
Normal file
12
pkg/nodes/reload_unix.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build !windows
|
||||
|
||||
package nodes
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func requestSelfReloadSignal() error {
|
||||
return syscall.Kill(os.Getpid(), syscall.SIGHUP)
|
||||
}
|
||||
Reference in New Issue
Block a user