Files
syncbot/internal/gitx/proc_other.go
T
iceBear67 a006483bbc
ci / test (push) Canceled after 0s
docker / build (push) Canceled after 0s
init
2026-08-14 07:13:22 +00:00

20 lines
446 B
Go

//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()
}
}