mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-06 01:47:30 +08:00
ci cross-platform fix: avoid syscall.SIGHUP usage on windows via build-tagged self-reload helper
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
cfgpkg "clawgo/pkg/config"
|
||||
@@ -357,7 +356,7 @@ func (s *RegistryServer) handleWebUIConfig(w http.ResponseWriter, r *http.Reques
|
||||
if s.onConfigAfter != nil {
|
||||
s.onConfigAfter()
|
||||
} else {
|
||||
_ = syscall.Kill(os.Getpid(), syscall.SIGHUP)
|
||||
_ = requestSelfReloadSignal()
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(map[string]interface{}{"ok": true, "reloaded": true})
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user