init
ci / test (push) Canceled after 0s
docker / build (push) Canceled after 0s

This commit is contained in:
iceBear67
2026-08-14 07:13:22 +00:00
commit a006483bbc
26 changed files with 3826 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
//go:build !unix
package gitx
import (
"os"
"syscall"
)
// sysProcAttr has no portable equivalent outside unix; the default is fine.
func sysProcAttr() *syscall.SysProcAttr { return nil }
// terminate kills just the child. Helper processes it spawned may outlive it,
// but syncbot is deployed on Linux, where proc_unix.go handles this properly.
func terminate(pid int) {
if p, err := os.FindProcess(pid); err == nil {
_ = p.Kill()
}
}